summaryrefslogtreecommitdiffstats
path: root/tests/ui/panics/panic-parens.rs
blob: 59ab544464967606ee93c445dfbf91c84f73d92f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Fail macros without arguments need to be disambiguated in
// certain positions

// run-fail
// error-pattern:oops
// ignore-emscripten no processes

fn bigpanic() {
    while (panic!("oops")) {
        if (panic!()) {
            match (panic!()) {
                () => {}
            }
        }
    }
}

fn main() {
    bigpanic();
}