We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using index 0001 on an tuple should emit an error
0001
I tried this code:
fn main() { (1, (2, 3)).0001.0001; }
I expected to see this happen: Emit an error.
error[E0609]: no field `0001` on type `Toto` --> src/main.rs:7:18 | 7 | let _ = toto.0001.001; | ^^^^ unknown field
Instead, this happened: The 0001 is replaced by a single 1, all leading zeroes are discarded and the code compiles correctly.
1
This behavior has been highlighted by #2694
The text was updated successfully, but these errors were encountered:
P-E-P
No branches or pull requests
Using index
0001
on an tuple should emit an errorI tried this code:
I expected to see this happen: Emit an error.
Instead, this happened: The
0001
is replaced by a single1
, all leading zeroes are discarded and the code compiles correctly.Meta
This behavior has been highlighted by #2694
The text was updated successfully, but these errors were encountered: