From f3a33ab4e8ced830250fbc9715decf419ad394fc Mon Sep 17 00:00:00 2001 From: sheroze1123 Date: Sun, 16 Nov 2014 00:12:52 -0500 Subject: Conformed the 100 char limit and changed colon to semicolon --- src/librustc/middle/typeck/check/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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() -- cgit 1.4.1-3-g733a5