Add clarification on E0308 about opaque types
This commit is contained in:
parent
1c82987782
commit
ba8e09415b
1 changed files with 1 additions and 0 deletions
|
@ -268,6 +268,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
||||||
let e_str = values.expected.to_string();
|
let e_str = values.expected.to_string();
|
||||||
let f_str = values.found.to_string();
|
let f_str = values.found.to_string();
|
||||||
if &e_str == &f_str && &e_str == "impl std::future::Future" {
|
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 \
|
db.help("if both futures resolve to the same type, consider `await`ing \
|
||||||
on both of them");
|
on both of them");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue