E0121 only machineapplicable for functions but not items? #106843
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:
Both suggestions are valid here, but when I run
cargo fix --broken-code
, only the function will be fixed, and thestatic
item will be left untouched for some reason 🤔Looks like an oversight to me.
The text was updated successfully, but these errors were encountered: