False positive "variable does not need to be mutable" with two closures #59620
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-NLL
Area: Non-lexical lifetimes (NLL)
C-bug
Category: This is a bug.
NLL-diagnostics
Working towards the "diagnostic parity" goal
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code:
Output:
Removing
mut
breaks the code.The text was updated successfully, but these errors were encountered: