We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c82987 commit ba8e094Copy full SHA for ba8e094
src/librustc/ty/error.rs
@@ -268,6 +268,7 @@ impl<'tcx> TyCtxt<'tcx> {
268
let e_str = values.expected.to_string();
269
let f_str = values.found.to_string();
270
if &e_str == &f_str && &e_str == "impl std::future::Future" {
271
+ // FIXME: use non-string based check.
272
db.help("if both futures resolve to the same type, consider `await`ing \
273
on both of them");
274
}
0 commit comments