Invalid unreachable_pub suggestion for enum with fields #103317
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.
Given the following code:
The current output is:
Which basically brokes cargo-fix, i.e
cargo fix --broken-code
produces invalid code:That seems to affect any enum with variant fields.
The text was updated successfully, but these errors were encountered: