Add clarification on E0308 about opaque types

This commit is contained in:
Esteban Küber 2019-08-21 11:49:51 -07:00
parent 1c82987782
commit ba8e09415b

View File

@ -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");
}