about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc/middle/typeck/check/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc/middle/typeck/check/mod.rs b/src/librustc/middle/typeck/check/mod.rs
index 141dd22f7e3..0d1ebac54c1 100644
--- a/src/librustc/middle/typeck/check/mod.rs
+++ b/src/librustc/middle/typeck/check/mod.rs
@@ -2534,7 +2534,8 @@ 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: maybe try .iter()",
+                                                not implement the `Iterator` trait; \
+                                                maybe try .iter()",
                                                 ty_string).as_slice());
             }
             ty::mk_err()