needless_pass_by_ref_mut
: false positive with closures
#11620
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
needless_pass_by_ref_mut
gives a false positive when the mutable reference is captured by a closureLint Name
needless_pass_by_ref_mut
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen: No warning
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: