rust/src/test/compile-fail/liveness-issue-2163.rs
2012-06-30 16:01:49 -07:00

6 lines
129 B
Rust

fn main(_s: ~[str]) {
let a: ~[int] = ~[];
do vec::each(a) { |_x| //! ERROR not all control paths return a value
}
}