mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
14 lines
192 B
Rust
14 lines
192 B
Rust
#![deny(break_with_label_and_loop)]
|
|
|
|
macro_rules! foo {
|
|
( $f:block ) => {
|
|
'_l: loop {
|
|
break '_l $f; //~ERROR
|
|
}
|
|
};
|
|
}
|
|
|
|
fn main() {
|
|
let x = foo!({ 3 });
|
|
}
|