summary refs log tree commit diff
path: root/src/test/run-fail/panic-parens.rs
blob: e7f98e58c4f390937899cfb47e13e653c1314e9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Fail macros without arguments need to be disambiguated in
// certain positions
// error-pattern:oops

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

fn main() {
    bigpanic();
}