mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 05:04:24 +00:00
Add clarification on E0308 about opaque types
This commit is contained in:
parent
1c82987782
commit
ba8e09415b
@ -268,6 +268,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
||||
let e_str = values.expected.to_string();
|
||||
let f_str = values.found.to_string();
|
||||
if &e_str == &f_str && &e_str == "impl std::future::Future" {
|
||||
// FIXME: use non-string based check.
|
||||
db.help("if both futures resolve to the same type, consider `await`ing \
|
||||
on both of them");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user