Redundant closure gives invalid suggestion #7218
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
Lint name:
redundant_closure
I tried this code:
I expected to see this happen: Clippy should not suggest
redundant_closure
, because of lifetime inference, the closure is required:Meta
cargo clippy -V
:clippy 0.1.52 (9bc8c42b 2021-05-09) (also 0.1.54 on playground)
rustc -Vv
:The text was updated successfully, but these errors were encountered: