rust/tests/ui/hygiene/hygienic-label-1.rs

8 lines
128 B
Rust

macro_rules! foo {
() => { break 'x; } //~ ERROR use of undeclared label `'x`
}
pub fn main() {
'x: loop { foo!(); }
}