summary refs log tree commit diff
path: root/src/test/compile-fail/ambig_impl_unify.rs
blob: bb2009fc9311596a9d35b9b42936ea56921f026b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
impl methods for ~[uint] {
    fn foo() -> int {1} //~ NOTE candidate #1 is `methods::foo`
}

impl methods for ~[int] {
    fn foo() -> int {2} //~ NOTE candidate #2 is `methods::foo`
}

fn main() {
    let x = ~[];
    x.foo(); //~ ERROR multiple applicable methods in scope
}