1
Fork 0
rust/src/test/compile-fail/issue-2150.rs

8 lines
213 B
Rust
Raw Normal View History

fn fail_len(v: ~[const int]) -> uint {
let mut i = fail;
2012-06-30 16:19:07 -07:00
for v.each |x| { i += 1u; }
//~^ WARNING unreachable statement
//~^^ ERROR the type of this value must be known
2012-08-01 17:30:05 -07:00
return i;
}
fn main() {}