summary refs log tree commit diff
path: root/src/test/compile-fail/issue-2150.rs
blob: 79f0598baac83406c8a61a1f14faecaed387662e (plain)
1
2
3
4
5
6
7
8
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() {}