- Notifications
You must be signed in to change notification settings - Fork 13.9k
Closed
Labels
A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTC-bugCategory: This is a bug.Category: This is a bug.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Description
fn main() { let a = (1, 2, 3); println!("{}", a.1lolololol); }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); }Expected:
ERROR: tuple index with a suffix is invalid Got:
Output: 2\n kennytm, eaglgenes101, MikailBag, topokel, hellow554 and 6 moreRudxain
Metadata
Metadata
Assignees
Labels
A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTC-bugCategory: This is a bug.Category: This is a bug.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.