Redundant_closure false positive with moved FnMut #6903
Labels
C-bug
Category: Clippy is not doing the correct thing
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Lint name: redundant_closure
I tried this code (reduced to a minimal example):
If I apply the suggestion (redundant_closure on the fourth line), resulting in the following code:
I get the following error:
Meta
cargo clippy -V
: e.g. clippy 0.0.212 (98d6634 2020-11-14)rustc -Vv
:The text was updated successfully, but these errors were encountered: