]> git.lizzy.rs Git - rust.git/blob - tests/ui/panics/panic-parens.rs
Rollup merge of #106648 - Nilstrieb:poly-cleanup, r=compiler-errors
[rust.git] / tests / ui / panics / panic-parens.rs
1 // Fail macros without arguments need to be disambiguated in
2 // certain positions
3
4 // run-fail
5 // error-pattern:oops
6 // ignore-emscripten no processes
7
8 fn bigpanic() {
9     while (panic!("oops")) {
10         if (panic!()) {
11             match (panic!()) {
12                 () => {}
13             }
14         }
15     }
16 }
17
18 fn main() {
19     bigpanic();
20 }