about summary refs log tree commit diff
path: root/tests/ui/panics/panic-parens.rs
blob: 5440bf18f256789239cbd94e28c022a316fba67c (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
//@ needs-subprocess

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

fn main() {
    bigpanic();
}