-
Notifications
You must be signed in to change notification settings - Fork 566
Open
Labels
A-patternsArea: PatternsArea: PatternsC-bugIncorrect statements, terminology, or rendering issuesIncorrect statements, terminology, or rendering issuesNew ContentMissing features or aspects of language not currently documented.Missing features or aspects of language not currently documented.
Description
https://github.com/rust-lang-nursery/reference/blob/master/src/patterns.md currently mentions that IdentifierPattern's right-hand side is a Pattern, which is allowed to be an IdentifierPattern.
However, the following code doesn't parse let x @ y @ () = (); println!("{:?} {:?}", x, y); (playground) due to pattern bindings not being allowed after the @.
As a consequence, I think the reference should be updated to mention that an IdentifierPattern's right-hand-side Pattern is not actually a full Pattern, but is instead not allowed to be another IdentifierPattern.
Metadata
Metadata
Assignees
Labels
A-patternsArea: PatternsArea: PatternsC-bugIncorrect statements, terminology, or rendering issuesIncorrect statements, terminology, or rendering issuesNew ContentMissing features or aspects of language not currently documented.Missing features or aspects of language not currently documented.