blob: 8c5f2244d546550228b0f8471b5658567951772e [file] [log] [blame]
//@ check-pass
//@ compile-flags: -Zunpretty=thir-tree
#![allow(incomplete_features)]
#![feature(loop_match)]
fn boolean(mut state: bool) -> bool {
#[loop_match]
loop {
state = 'blk: {
match state {
true => {
#[const_continue]
break 'blk false;
}
false => return state,
}
}
}
}
fn main() {}