identity_op fails to deal with references properly: &0 + 0 #9904
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Summary
.
Reproducer
I tried this code:
we turn
&0 + 0
into&0
but as per type annotation it should just be0
. :/cargo clippy --fix -- -Aclippy::all -Wclippy::identity_op
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: