mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 12:18:33 +00:00
12 lines
163 B
Rust
12 lines
163 B
Rust
//@ check-pass
|
|
|
|
#![deny(break_with_label_and_loop)]
|
|
|
|
unsafe fn foo() -> i32 { 42 }
|
|
|
|
fn main () {
|
|
'label: loop {
|
|
break 'label unsafe { foo() }
|
|
};
|
|
}
|