summary refs log tree commit diff
path: root/src/test/compile-fail/iface-cast.rs
blob: a82bb0b80d226665418563ddbfd1ba21098f8396 (plain)
1
2
3
4
5
6
7
8
iface foo<T> { }

fn bar(x: foo<uint>) -> foo<int> {
    ret (x as foo::<int>);
    //~^ ERROR mismatched types: expected `foo<int>` but found `foo<uint>`
}

fn main() {}