Recover from C++-style "pub enum struct X" #99625
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
Ideally the output should look like:
Highlight to the user that the keywords
enum
andstruct
are mutually exclusive. Replaceenum struct
withenum
.The text was updated successfully, but these errors were encountered: