summary refs log tree commit diff
path: root/src/test/compile-fail/liveness-issue-2163.rs
blob: a0c52f1b4a9dbe967e5231dbb96055020cc52e5a (plain)
1
2
3
4
5
6
// xfail-test After the closure syntax change this started failing with the wrong error message
fn main(_s: ~[str]) {
    let a: ~[int] = ~[];
    do vec::each(a) |_x| { //~ ERROR not all control paths return a value
    }
}