rust/src/test/compile-fail/liveness-issue-2163.rs

6 lines
129 B
Rust
Raw Normal View History

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