fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0221]: ambiguous associated type `A` in bounds of `Self` 2 --> $DIR/E0221.rs:11:16 3 | 4LL | type A: T1; 5 | ----------- ambiguous `A` from `Foo` 6... 7LL | type A: T2; 8 | ----------- ambiguous `A` from `Bar` 9LL | fn do_something() { 10LL | let _: Self::A; 11 | ^^^^^^^ ambiguous associated type `A` 12 13error[E0221]: ambiguous associated type `Err` in bounds of `Self` 14 --> $DIR/E0221.rs:21:16 15 | 16LL | type Err: T3; 17 | ------------- ambiguous `Err` from `My` 18LL | fn test() { 19LL | let _: Self::Err; 20 | ^^^^^^^^^ ambiguous associated type `Err` 21 | 22note: associated type `Self` could derive from `std::str::FromStr` 23 --> $DIR/E0221.rs:21:16 24 | 25LL | let _: Self::Err; 26 | ^^^^^^^^^ 27 28error: aborting due to 2 previous errors 29 30For more information about this error, try `rustc --explain E0221`.