rust/src/test/compile-fail/issue-2150.rs

8 lines
208 B
Rust
Raw Normal View History

fn fail_len(v: [const int]) -> uint {
let mut i = fail;
for v.each {|x| i += 1u; }
//!^ WARNING unreachable statement
//!^^ ERROR the type of this value must be known
ret i;
}
fn main() {}