let_underscore_untyped in the case of unnameable types #10411
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 recommends that the programmer fill in a type annotation even when there isn't a type annotation that the programmer could fill in.
Lint Name
let_underscore_untyped
Reproducer
Clippy wants this written as
let _: ??? = f()
. However, there isn't really anything better the programmer could write here. (If there is, clippy should provide that guidance.)let _: impl Fn() = ...
does not work.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: