Diagnostic strips leading underscore #121776
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
I tried the following code on Rust 1.76.0:
I got the following error:
Note that the suggestion has stripped the leading
_
character from the enum's name.The text was updated successfully, but these errors were encountered: