9a77a17e3b
fixes #2772
6 lines
134 B
Rust
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
|
|
});
|
|
}
|