Skip to content

Commit ba8e094

Browse files
committed
Add clarification on E0308 about opaque types
1 parent 1c82987 commit ba8e094

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc/ty/error.rs

+1
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ impl<'tcx> TyCtxt<'tcx> {
268268
let e_str = values.expected.to_string();
269269
let f_str = values.found.to_string();
270270
if &e_str == &f_str && &e_str == "impl std::future::Future" {
271+
// FIXME: use non-string based check.
271272
db.help("if both futures resolve to the same type, consider `await`ing \
272273
on both of them");
273274
}

0 commit comments

Comments
 (0)