1 error[E0034]: multiple applicable items in scope
2 --> $DIR/ambiguous.rs:21:7
5 | ^^^ multiple `foo` found
7 note: candidate #1 is defined in an impl of the trait `A` for the type `u8`
8 --> $DIR/ambiguous.rs:8:9
12 note: candidate #2 is defined in an impl of the trait `B` for the type `u8`
13 --> $DIR/ambiguous.rs:11:9
17 help: disambiguate the associated function for candidate #1
21 help: disambiguate the associated function for candidate #2
26 error: aborting due to previous error
28 For more information about this error, try `rustc --explain E0034`.