Spurious E0492 with closure capture #112378
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Code
Current output
Desired output
Rationale and extra context
Apparently there's no interior mutability involved. So we should just output we cannot mutable borrow
i
in const context.Incidentally(?) fixed by #112119. Still needs test though.
@rustbot label E-needs-test
Other cases
No response
Anything else?
rustc version
The text was updated successfully, but these errors were encountered: