redundant closure lint fails for FnMut where FnOnce is expected #3898
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
L-suggestion
Lint: Improving, adding or fixing lint suggestions
This compiles (playground):
but clippy suggests:
which fails to compile with (playground):
The text was updated successfully, but these errors were encountered: