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