assigning_clones: after fixes were automatically applied the compiler reported errors within these files: – cannot borrow name
as mutable because it is also borrowed as immutable
#12460
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
Since upgrading to the latest nightly I'm seeing this error in my project. I think this was caused by the new lint added in #12077
Output from the sample file included below:
Reproducer
I tried this code:
And I ran:
I expected it to not error, instead I got the output at the top of this issue.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: