blob: d6edc74ab550b6e63eb6738f57c53a71e161b356 [file]
//! Regression test for <https://github.com/rust-lang/rust/issues/143806>
//@ check-pass
//@ compile-flags: -Zlint-mir
#![feature(loop_match)]
fn main() {}
fn helper() -> u8 {
let mut state = 0u8;
#[loop_match]
'a: loop {
state = 'blk: {
match state {
_ => break 'blk state,
}
}
}
}