Wrong if_same_then_else
lint error when having two different integer
#11213
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
if we call a trait method on two different integer type in a if else condition and specify the types like
0_u8
,0u16
and... this lint will give us a error about both if and else are the same, when they're not...Lint Name
if_same_then_else
Reproducer
I tried this code:
I saw this happen:
I didn't expected to see any lint error here because I'm calling this trait method on two different type.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: