Skip to content

Commit 4aab27b

Browse files
committed
Fix for issue #17574
1 parent 7e43f41 commit 4aab27b

File tree

1 file changed

+1
-1
lines changed
  • src/librustc/middle/typeck/check

1 file changed

+1
-1
lines changed

src/librustc/middle/typeck/check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2534,7 +2534,7 @@ fn lookup_method_for_for_loop(fcx: &FnCtxt,
25342534
let ty_string = fcx.infcx().ty_to_string(true_expr_type);
25352535
fcx.tcx().sess.span_err(iterator_expr.span,
25362536
format!("`for` loop expression has type `{}` which does \
2537-
not implement the `Iterator` trait",
2537+
not implement the `Iterator` trait: maybe try .iter()",
25382538
ty_string).as_slice());
25392539
}
25402540
ty::mk_err()

0 commit comments

Comments
 (0)