summaryrefslogtreecommitdiffstats
path: root/tests/ui/hygiene/hygienic-label-4.rs
blob: a7e1f0e78b74edbd068de2315b96e9653628ae68 (plain)
1
2
3
4
5
6
7
macro_rules! foo {
    ($e: expr) => { 'x: for _ in 0..1 { $e } }
}

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