Skip to content

Commit

Permalink
Fix for issue #17574
Browse files Browse the repository at this point in the history
  • Loading branch information
sheroze1123 committed Nov 15, 2014
1 parent 7e43f41 commit 4aab27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/middle/typeck/check/mod.rs
Expand Up @@ -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()
Expand Down

0 comments on commit 4aab27b

Please sign in to comment.