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

6 lines
134 B
Rust
Raw Normal View History

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