-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird compiler reporting when for
is forgotten
#8128
Comments
The old |
Triage: still the same message. It's parsing it as |
This bug is quite old at this point, and |
changelog: Fix error suggestion of skip(..).next() for immutable variable.
Fix 8128 Fixes rust-lang#8128 changelog: Fix error suggestion of `skip(..).next()` for immutable variable.
I don't know if it's fixable, but it would be nice if the
... || {}
syntax created an error when it doesn't make sense (or does it and I am confused?)To reproduce, try to compile:
As you see
for
is missing at line 3, but the compiler reports:Which is very misleading.
The text was updated successfully, but these errors were encountered: