2013-01-31 18:24:09 -08:00
|
|
|
// Fail macros without arguments need to be disambiguated in
|
2011-08-18 22:16:54 -07:00
|
|
|
// certain positions
|
2020-05-08 00:39:02 +09:00
|
|
|
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ run-fail
|
|
|
|
|
//@ error-pattern:oops
|
2025-01-23 16:36:54 +08:00
|
|
|
//@ needs-subprocess
|
2011-08-18 22:16:54 -07:00
|
|
|
|
2014-10-09 15:17:22 -04:00
|
|
|
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
|
|
|
}
|
2011-08-18 22:16:54 -07:00
|
|
|
}
|
|
|
|
|
|
2016-05-27 08:09:36 +05:30
|
|
|
fn main() {
|
|
|
|
|
bigpanic();
|
|
|
|
|
}
|