summary refs log tree commit diff
path: root/src/test/compile-fail/ambig_impl_bounds.rs
blob: 9d7a9634a074e4cea144869f0aa2f83a9385824b (plain)
1
2
3
4
5
6
7
8
9
10
iface A { fn foo(); }
iface B { fn foo(); }

fn foo<T: A B>(t: T) {
    t.foo(); //~ ERROR multiple applicable methods in scope
    //~^ NOTE candidate #1 derives from the bound `A`
    //~^^ NOTE candidate #2 derives from the bound `B`
}

fn main() {}