2016-05-17 08:01:31 -05:00
|
|
|
struct Test;
|
|
|
|
|
|
|
|
trait Trait1 {
|
|
|
|
fn foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
trait Trait2 {
|
|
|
|
fn foo();
|
|
|
|
}
|
|
|
|
|
2016-08-29 23:59:24 -05:00
|
|
|
impl Trait1 for Test {
|
|
|
|
fn foo() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Trait2 for Test {
|
|
|
|
fn foo() {}
|
|
|
|
}
|
2016-05-17 08:01:31 -05:00
|
|
|
|
|
|
|
fn main() {
|
2016-08-29 23:59:24 -05:00
|
|
|
Test::foo() //~ ERROR multiple applicable items in scope
|
2016-05-17 08:01:31 -05:00
|
|
|
}
|