Fix for issue #17574

This commit is contained in:
sheroze1123 2014-11-15 14:05:11 -05:00
parent 7e43f419cb
commit 4aab27bed6

View file

@ -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()