nll: incorrect unused_mut with move closure #51801
Labels
A-NLL
Area: Non-lexical lifetimes (NLL)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
With the nll feature enabled, a "variable does not need to be mutable" warning is emitted incorrectly when a variable is mutated from inside a move closure.
The text was updated successfully, but these errors were encountered: