1 error[E0034]: multiple applicable items in scope
2 --> $DIR/method-ambig-two-traits-from-impls2.rs:15:9
5 | ^^^ multiple `foo` found
7 note: candidate #1 is defined in an impl of the trait `A` for the type `AB`
8 --> $DIR/method-ambig-two-traits-from-impls2.rs:7:5
12 note: candidate #2 is defined in an impl of the trait `B` for the type `AB`
13 --> $DIR/method-ambig-two-traits-from-impls2.rs:11:5
17 help: disambiguate the associated function for candidate #1
19 LL | <AB as A>::foo();
21 help: disambiguate the associated function for candidate #2
23 LL | <AB as B>::foo();
26 error: aborting due to previous error
28 For more information about this error, try `rustc --explain E0034`.