let_underscore_untyped with type _
#10441
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
Summary
In light of #10411, it seems likely that folks would work around this lint by replacing
let _ = ...
withlet _: _ = ...
.However, that has all of the same downsides described in #6842. It's just a noisier / less clear way of writing the same thing. It would be better to require
#[allow(clippy::let_underscore_untyped)]
when someone wants to disregard this lint, rather thanlet _: _
.Lint Name
let_underscore_untyped
Reproducer
Should trigger let_underscore_untyped, but does not.
Version
The text was updated successfully, but these errors were encountered: