1 error[E0034]: multiple applicable items in scope
2 --> $DIR/E0034.rs:20:11
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:16:5
17 help: disambiguate the associated function for candidate #1
19 LL | <Test as Trait1>::foo()
21 help: disambiguate the associated function for candidate #2
23 LL | <Test as Trait2>::foo()
26 error: aborting due to previous error
28 For more information about this error, try `rustc --explain E0034`.