-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Identifiers in range notation are not parsed correctly #20830
Comments
cc @nick29581 |
btw replacing |
There is an issue in the compiler that makes some workaround necessary here, see rust-lang/rust#20830
Maybe this sheds some more light on it: let a = 3;
for i in 0..a {} Apparently the compiler parses it as Error:
|
Looks like the parser is replacing the restrictions with |
Closing as a dupe of #20241. |
The following example fails to compile currently:
with
The text was updated successfully, but these errors were encountered: