2012-08-09 10:50:18 -07:00
|
|
|
fn main() {
|
2012-06-29 16:26:56 -07:00
|
|
|
let a: ~[int] = ~[];
|
2012-09-18 18:31:59 -07:00
|
|
|
vec::each_ref(a, fn@(_x: &int) -> bool {
|
|
|
|
//~^ ERROR not all control paths return a value
|
2012-08-09 10:50:18 -07:00
|
|
|
});
|
2012-05-19 05:52:01 -07:00
|
|
|
}
|