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

pub fn main() {
    'x: loop { foo!(); }
}