Parse and reject "typescript-style" anonymous enums #100741
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST.
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given
we currently point at the
|
and complain about it not being expected.Ideally, this should parse and explicitly state that anonymous enums are not supported, and provide a structured suggestion for
At least, we should emit a note suggesting the above in text without a structured suggestion (which will be easier to produce).
The text was updated successfully, but these errors were encountered: