cast_possible_truncation suggestion problem #13814
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
Clippy cast_possible_truncation nusery lint gives an wrong suggestion.
Lint Name
cast_possible_truncation
Reproducer
I tried this code:
I saw this happen:
The suggested code can't compile, even if you add unwrap(), because it's a const context.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: