Possible cast_possible_truncation false positive #8316
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
This code:
Gives:
Perhaps this pedantic warning could be generated only if there's an actual truncation. Here 100_000 fits in 32 bits.
Lint Name
No response
Reproducer
I tried this code:
<code>
I saw this happen:
I expected to see this happen:
Version
No response
Additional Labels
No response
The text was updated successfully, but these errors were encountered: