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

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