Skip to content

Fix for issue #17574 #18984

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Nov 21, 2014
Merged

Fix for issue #17574 #18984

merged 2 commits into from
Nov 21, 2014

Conversation

sheroze1123
Copy link
Contributor

Fix #17574

@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon.

@@ -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
Member

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!

@bstrie
Copy link
Contributor

bstrie commented Nov 20, 2014

Thanks for the fix!

bors added a commit that referenced this pull request Nov 21, 2014
@bors bors closed this Nov 21, 2014
@bors bors merged commit f3a33ab into rust-lang:master Nov 21, 2014
lnicola pushed a commit to lnicola/rust that referenced this pull request Jan 27, 2025
internal: Move dual blanket impl logic from source analyzer to goto_def
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve error message for "for x in [1,2,3] {"
5 participants