Suggestion for unused variables can sometimes be incorrect #56685
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
First reported upstream this code:
when compiled yields a suggestion of
but the suggestion is not correct! Both instances of the
x
binding need to be renamed in order for the code to be automatically fixed.The text was updated successfully, but these errors were encountered: