Avoding the clippy lint with type placeholder _
#7388
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Lint name:
zero_ptr
I tried this code:
Clippy is not able to deduce a style lint in cases of implicit cast, but would look at the signature of function
RawWaker::new()
:Manually placing the type makes clippy recognize the style lint
Meta
cargo clippy -V
: clippy 0.1.54 (a85f584 2021-06-16)rustc -Vv
:The text was updated successfully, but these errors were encountered: