summaryrefslogtreecommitdiffstats
path: root/src/test/ui/hygiene/hygienic-label-3.rs
blob: ab0559e1b6a8379adcbf912800bbe78fcf04ac32 (plain)
1
2
3
4
5
6
7
8
9
macro_rules! foo {
    () => { break 'x; } //~ ERROR use of undeclared label `'x`
}

pub fn main() {
    'x: for _ in 0..1 {
        foo!();
    };
}