Skip to content

Commit

Permalink
Add clarification on E0308 about opaque types
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Aug 21, 2019
1 parent 1c82987 commit ba8e094
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc/ty/error.rs
Expand Up @@ -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");
}
Expand Down

0 comments on commit ba8e094

Please sign in to comment.