about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-08-21 11:49:51 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-08-21 15:05:21 -0700
commitba8e09415b00fdfcda8feeb1cf233f2f065ef6c6 (patch)
treec52c607945d855c85d67f29ed41e77e1392f5b47 /src
parent1c829877824aeda82e78ed3a0ecb12a3cb0b2d9d (diff)
downloadrust-ba8e09415b00fdfcda8feeb1cf233f2f065ef6c6.tar.gz
rust-ba8e09415b00fdfcda8feeb1cf233f2f065ef6c6.zip
Add clarification on E0308 about opaque types
Diffstat (limited to 'src')
-rw-r--r--src/librustc/ty/error.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc/ty/error.rs b/src/librustc/ty/error.rs
index 6daecd7ae94..c1593799286 100644
--- a/src/librustc/ty/error.rs
+++ b/src/librustc/ty/error.rs
@@ -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");
                     }