Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/librustc/middle/typeck/check/mod.rs
Original file line number Diff line number Diff line change
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()",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change the : to a ; here? Otherwise, looks good, and thanks for the PR!

ty_string).as_slice());
}
ty::mk_err()
Expand Down