Cannot assign twice to immutable variable with 'l: while break 'l {}
as initializer
#62115
Labels
A-NLL
Area: Non-lexical lifetimes (NLL)
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
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.
With:
we get:
This seems wrong. At least from a source view,
_x
is assigned to once.Current MIR dump:
This might possibly be fixed by #61988.
cc @eddyb @pnkfelix @matthewjasper
The text was updated successfully, but these errors were encountered: