Parsing issue in complex nested match statement with &&. #104576
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I think I found a case where I am hitting an issue with Rust's parser which seems to get confused on the following bit of code:
I expected that it would compile similar to the snippet below:
Instead, it seems to hit a parsing issue following the
&&
after the innermatch
yielding abool
, where it shows the following error instead:This happens on:
As well as on:
The text was updated successfully, but these errors were encountered: