needless_pass_by_ref_mut
false positive because of type change
#11182
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
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Summary
A function may require an
&mut
argument so that it has a particular type.Lint Name
needless_pass_by_ref_mut
Reproducer
I tried this code (note that
foo
needs to have the&mut
argument to be passed tobar
):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: