-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-loop_matchwhen you match up with someone and they really throw you for a loopwhen you match up with someone and they really throw you for a loop
Description
I tried this code:
#![allow(incomplete_features)]
#![feature(loop_match)]
enum State {
A,
}
fn main() {
let mut state = State::A;
#[loop_match]
'a: loop {
state = 'blk: {
match state {
State::A => {
#[const_continue]
break 'blk State::A;
}
}
};
}
}
I expected to see this happen: There is a PlaceMention
for state
.
Instead, this happened: There is no PlaceMention
for state
.
Meta
rustc --version --verbose
:
1.90.0-nightly (2025-07-31 adcb3d3b4cd3b7c4cde6)
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-loop_matchwhen you match up with someone and they really throw you for a loopwhen you match up with someone and they really throw you for a loop