1 error[E0221]: ambiguous associated type `A` in bounds of `Self`
2 --> $DIR/E0221.rs:11:16
5 | ----------- ambiguous `A` from `Foo`
8 | ----------- ambiguous `A` from `Bar`
9 LL | fn do_something() {
11 | ^^^^^^^ ambiguous associated type `A`
13 help: use fully qualified syntax to disambiguate
15 LL | let _: <Self as Foo>::A;
17 help: use fully qualified syntax to disambiguate
19 LL | let _: <Self as Bar>::A;
22 error[E0221]: ambiguous associated type `Err` in bounds of `Self`
23 --> $DIR/E0221.rs:21:16
26 | ------------- ambiguous `Err` from `My`
28 LL | let _: Self::Err;
29 | ^^^^^^^^^ ambiguous associated type `Err`
31 = note: associated type `Self` could derive from `FromStr`
32 help: use fully qualified syntax to disambiguate
34 LL | let _: <Self as My>::Err;
37 error: aborting due to 2 previous errors
39 For more information about this error, try `rustc --explain E0221`.