cast_lossless
not triggered by char as u32
#14469
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
Casting a
char
to au32
is lossless, but thecast_lossless
lint doesn't cover it.Lint Name
cast_lossless
Reproducer
I tried this code:
Playground
I expected to see this happen: Compiler error
Instead, this happened:
The code compiled without any issues.
Version
The text was updated successfully, but these errors were encountered: