mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
21 lines
340 B
Rust
21 lines
340 B
Rust
// Fail macros without arguments need to be disambiguated in
|
|
// certain positions
|
|
|
|
// run-fail
|
|
// error-pattern:oops
|
|
// ignore-emscripten no processes
|
|
|
|
fn bigpanic() {
|
|
while (panic!("oops")) {
|
|
if (panic!()) {
|
|
match (panic!()) {
|
|
() => {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
bigpanic();
|
|
}
|