E0004 non-exhaustive patterns suggestion has unqualified enum variant #101356
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
The problem with the suggestion is that it suggests
Variant2
without theFoo::
prefix. Ideally the suggestion should be:The current suggestion does not compile.
The text was updated successfully, but these errors were encountered: