1 error[E0034]: multiple applicable items in scope
4 LL | Test::foo() //~ ERROR multiple applicable items in scope
5 | ^^^^^^^^^ multiple `foo` found
7 note: candidate #1 is defined in an impl of the trait `Trait1` for the type `Test`
12 note: candidate #2 is defined in an impl of the trait `Trait2` for the type `Test`
13 --> $DIR/E0034.rs:26:5
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0034`.