Manual map 2021 false negative #7876
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: manual_map
The 2021 edition made closure capturing smarter. We can now make some suggestions that previously wouldn't compile.
Edition Docs
I tried this code:
This is the test case for issue #6797
I expected to see this happen:
This recommendation if I'm using 2021.
Instead, this happened:
No, warning. It's a false negative.
playground
The text was updated successfully, but these errors were encountered: