False positive with redundant_closure #4354
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
Not sure if it's not a duplicate of some issue, there are a lot of tickets, but this still seems distinct. Tested both on nightly and stable.
Sample code:
Causes the following warning.
The closure cannot be removed as shown.
The text was updated successfully, but these errors were encountered: