We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fn main() { let a = (1, 2, 3); println!("{}", a.1lolololol); }
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=4280ded6698f9f9f3877ad0498769cb7
Expected:
ERROR: tuple index with a suffix is invalid
Got:
Output: 2\n
All thanks to: https://linuxrocks.online/@carl/101569506337640753
UPD:
The same error arises with tuple struct:
struct X(i32,i32,i32); fn main() { let a = X(1, 2, 3); let b = a.1lolololol; println!("{}", b); }
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ad7f39e8edad0d98f2919bd4fdfded30
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=4280ded6698f9f9f3877ad0498769cb7
Expected:
Got:
All thanks to: https://linuxrocks.online/@carl/101569506337640753
UPD:
The same error arises with tuple struct:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ad7f39e8edad0d98f2919bd4fdfded30
Expected:
Got: