summary refs log tree commit diff
path: root/tests/ui/panics/panic-parens.rs
blob: 271d0363cab8a365126fbc225b7eb8f995b48332 (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();
}