9cf271fe96
Note that the method foo.each() is not de-moded, nor the other vec routines.
7 lines
144 B
Rust
7 lines
144 B
Rust
fn main() {
|
|
let a: ~[int] = ~[];
|
|
vec::each(a, fn@(_x: &int) -> bool {
|
|
//~^ ERROR not all control paths return a value
|
|
});
|
|
}
|