We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4aab27b commit f3a33abCopy full SHA for f3a33ab
src/librustc/middle/typeck/check/mod.rs
@@ -2534,7 +2534,8 @@ fn lookup_method_for_for_loop(fcx: &FnCtxt,
2534
let ty_string = fcx.infcx().ty_to_string(true_expr_type);
2535
fcx.tcx().sess.span_err(iterator_expr.span,
2536
format!("`for` loop expression has type `{}` which does \
2537
- not implement the `Iterator` trait: maybe try .iter()",
+ not implement the `Iterator` trait; \
2538
+ maybe try .iter()",
2539
ty_string).as_slice());
2540
}
2541
ty::mk_err()
0 commit comments