mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
23 lines
434 B
Rust
23 lines
434 B
Rust
//@ 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() {}
|