Detect match arm guard preceded by |
in the parser
#64879
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
F-or_patterns
`#![feature(or_patterns)]`
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Detect and recover the following incorrect code:
which currently emits
The parser should instead detect it is parsing a match arm guard.
The text was updated successfully, but these errors were encountered: