rust/src/test/run-fail/fail-parens.rs
2011-08-31 16:32:16 +02:00

14 lines
270 B
Rust

// xfail-test
// Fail statements without arguments need to be disambiguated in
// certain positions
// error-pattern:explicit-failure
fn bigfail() {
do { while (fail) { if (fail) {
alt (fail) { _ {
}}
}}} while fail;
}
fn main() { bigfail(); }