Files
rust/tests/ui/panics/panic-parens.rs

21 lines
329 B
Rust
Raw Normal View History

// Fail macros without arguments need to be disambiguated in
// certain positions
2020-05-08 00:39:02 +09:00
//@ run-fail
//@ error-pattern:oops
//@ needs-subprocess
fn bigpanic() {
2016-05-27 08:09:36 +05:30
while (panic!("oops")) {
if (panic!()) {
match (panic!()) {
() => {}
}
2012-11-15 19:50:53 -08:00
}
2016-05-27 08:09:36 +05:30
}
}
2016-05-27 08:09:36 +05:30
fn main() {
bigpanic();
}