about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsheroze1123 <mss385@cornell.edu>2014-11-15 14:05:11 -0500
committersheroze1123 <mss385@cornell.edu>2014-11-15 14:05:11 -0500
commit4aab27bed67973c9db244cf4ddcd06e82b3bab0a (patch)
tree0856334f734678620751893b6a9e18ad462286ee
parent7e43f419cb98c9035d30e5cf0e0be7944dbc0371 (diff)
downloadrust-4aab27bed67973c9db244cf4ddcd06e82b3bab0a.tar.gz
rust-4aab27bed67973c9db244cf4ddcd06e82b3bab0a.zip
Fix for issue #17574
-rw-r--r--src/librustc/middle/typeck/check/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/middle/typeck/check/mod.rs b/src/librustc/middle/typeck/check/mod.rs
index cac702d6ac0..141dd22f7e3 100644
--- a/src/librustc/middle/typeck/check/mod.rs
+++ b/src/librustc/middle/typeck/check/mod.rs
@@ -2534,7 +2534,7 @@ fn lookup_method_for_for_loop(fcx: &FnCtxt,
                 let ty_string = fcx.infcx().ty_to_string(true_expr_type);
                 fcx.tcx().sess.span_err(iterator_expr.span,
                                         format!("`for` loop expression has type `{}` which does \
-                                                 not implement the `Iterator` trait",
+                                                 not implement the `Iterator` trait: maybe try .iter()",
                                                 ty_string).as_slice());
             }
             ty::mk_err()