Borrow checker error in fixed code for map_entry lint #14154
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
clippy --fix, while trying to address a
clippy::map_entry
lint, introduces a "cannot borrow*self
as immutable because it is also borrowed as mutable" compiler error.Lint Name
map_entry
Reproducer
Here is a minimal reproduction:
clippy --fix replaces
f
withwhich causes a compilation error
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: