2012-06-29 18:26:56 -05:00
|
|
|
fn fail_len(v: ~[const int]) -> uint {
|
2012-04-07 19:11:33 -05:00
|
|
|
let mut i = fail;
|
2012-06-30 18:19:07 -05:00
|
|
|
for v.each |x| { i += 1u; }
|
2012-06-30 06:23:59 -05:00
|
|
|
//~^ WARNING unreachable statement
|
|
|
|
//~^^ ERROR the type of this value must be known
|
2012-04-07 19:11:33 -05:00
|
|
|
ret i;
|
|
|
|
}
|
|
|
|
fn main() {}
|