2013-01-31 20:24:09 -06:00
|
|
|
// Fail macros without arguments need to be disambiguated in
|
2011-08-19 00:16:54 -05:00
|
|
|
// certain positions
|
2020-05-07 10:39:02 -05:00
|
|
|
|
2020-04-16 01:50:32 -05:00
|
|
|
// run-fail
|
2012-11-15 21:50:53 -06:00
|
|
|
// error-pattern:oops
|
2020-05-07 10:39:02 -05:00
|
|
|
// ignore-emscripten no processes
|
2011-08-19 00:16:54 -05:00
|
|
|
|
2014-10-09 14:17:22 -05:00
|
|
|
fn bigpanic() {
|
2016-05-26 21:39:36 -05:00
|
|
|
while (panic!("oops")) {
|
|
|
|
if (panic!()) {
|
|
|
|
match (panic!()) {
|
|
|
|
() => {}
|
|
|
|
}
|
2012-11-15 21:50:53 -06:00
|
|
|
}
|
2016-05-26 21:39:36 -05:00
|
|
|
}
|
2011-08-19 00:16:54 -05:00
|
|
|
}
|
|
|
|
|
2016-05-26 21:39:36 -05:00
|
|
|
fn main() {
|
|
|
|
bigpanic();
|
|
|
|
}
|