about summary refs log tree commit diff
path: root/src/test/run-fail/fail-parens.rs
blob: 849d4b41d3bccfe691aef28ed3edd9f77477d35a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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(); }