2012-08-09 17:50:18 +00:00
|
|
|
fn main() {
|
2012-06-29 23:26:56 +00:00
|
|
|
let a: ~[int] = ~[];
|
2012-09-19 04:41:37 +00:00
|
|
|
vec::each(a, fn@(_x: &int) -> bool {
|
|
|
|
//~^ ERROR not all control paths return a value
|
2012-08-09 17:50:18 +00:00
|
|
|
});
|
2012-05-19 12:52:01 +00:00
|
|
|
}
|