Missing match
arms suggests the function name for enums defined inside the function but shadowed
#137682
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
Unsure if
make_index
should be dropped from the name of the enum, but it definitely needs to be removed from the code suggestion, since it's not needed, and causes an error.Other cases
Rust Version
1.87.0-nightly (2025-02-25 85abb276361c424d6474) (I'm testing this on the playground, and it happens for all of stable, beta, nightly there)
Anything else?
No response
The text was updated successfully, but these errors were encountered: