rust/tests/ui/for-loop-while/loop-labeled-break-value.rs
2024-02-16 20:02:50 +00:00

12 lines
210 B
Rust

//@ run-pass
//@ pretty-expanded FIXME #23616
fn main() {
'outer: loop {
let _: i32 = loop { break 'outer };
}
'outer2: loop {
let _: i32 = loop { loop { break 'outer2 } };
}
}