]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/panic-parens.rs
Rollup merge of #65595 - Centril:cfgspecs, r=Mark-Simulacrum
[rust.git] / src / test / run-fail / panic-parens.rs
1 // Fail macros without arguments need to be disambiguated in
2 // certain positions
3 // error-pattern:oops
4
5 fn bigpanic() {
6     while (panic!("oops")) {
7         if (panic!()) {
8             match (panic!()) {
9                 () => {}
10             }
11         }
12     }
13 }
14
15 fn main() {
16     bigpanic();
17 }