rust/src/test/compile-fail/liveness-issue-2163.rs
2012-08-09 11:00:44 -07:00

6 lines
134 B
Rust

fn main() {
let a: ~[int] = ~[];
vec::each(a, fn@(_x: int) -> bool { //~ ERROR not all control paths return a value
});
}