1 error[E0220]: associated type `A` not found for `T`
2 --> $DIR/associated-types-path-1.rs:10:26
4 LL | pub fn f1<T>(a: T, x: T::A) {}
5 | ^ associated type `A` not found
7 error[E0221]: ambiguous associated type `A` in bounds of `T`
8 --> $DIR/associated-types-path-1.rs:11:34
11 | ------ ambiguous `A` from `Foo`
14 | ------ ambiguous `A` from `Bar`
16 LL | pub fn f2<T: Foo + Bar>(a: T, x: T::A) {}
17 | ^^^^ ambiguous associated type `A`
19 help: use fully qualified syntax to disambiguate
21 LL | pub fn f2<T: Foo + Bar>(a: T, x: <T as Bar>::A) {}
23 help: use fully qualified syntax to disambiguate
25 LL | pub fn f2<T: Foo + Bar>(a: T, x: <T as Foo>::A) {}
28 error: aborting due to 2 previous errors
30 Some errors have detailed explanations: E0220, E0221.
31 For more information about an error, try `rustc --explain E0220`.