"consider removing the borrow" suggests to only remove &
and not mut
#85933
Labels
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In the following snippet, rustc suggests to remove just the
&
instead of removing the&mut
, resulting in an invalid suggestion:mut format!("")
.The text was updated successfully, but these errors were encountered: