20 lines
329 B
Rust
20 lines
329 B
Rust
// Fail macros without arguments need to be disambiguated in
|
|
// certain positions
|
|
|
|
//@ run-fail
|
|
//@ error-pattern:oops
|
|
//@ needs-subprocess
|
|
|
|
fn bigpanic() {
|
|
while (panic!("oops")) {
|
|
if (panic!()) {
|
|
match (panic!()) {
|
|
() => {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
bigpanic();
|
|
}
|