summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-87812.rs
blob: 0ba87b995443f4e73bc3b2433458492f0626fdbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![deny(break_with_label_and_loop)]

macro_rules! foo {
    ( $f:block ) => {
        '_l: loop {
            break '_l $f; //~ERROR
        }
    };
}

fn main() {
    let x = foo!({ 3 });
}