2012-05-25 10:42:39 -05:00
|
|
|
iface A { fn foo(); }
|
|
|
|
iface B { fn foo(); }
|
|
|
|
|
|
|
|
fn foo<T: A B>(t: T) {
|
2012-06-30 06:23:59 -05:00
|
|
|
t.foo(); //~ ERROR multiple applicable methods in scope
|
|
|
|
//~^ NOTE candidate #1 derives from the bound `A`
|
|
|
|
//~^^ NOTE candidate #2 derives from the bound `B`
|
2012-05-25 10:42:39 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|