1 error[E0071]: expected struct, variant or union type, found associated type
2 --> $DIR/struct-path-associated-type.rs:22:13
7 error[E0109]: type parameters are not allowed on this type
8 --> $DIR/struct-path-associated-type.rs:24:20
10 LL | let z = T::A::<u8> {};
11 | ^^ type parameter not allowed
13 error[E0071]: expected struct, variant or union type, found associated type
14 --> $DIR/struct-path-associated-type.rs:24:13
16 LL | let z = T::A::<u8> {};
17 | ^^^^^^^^^^ not a struct
19 error[E0071]: expected struct, variant or union type, found associated type
20 --> $DIR/struct-path-associated-type.rs:28:9
25 error[E0109]: type parameters are not allowed on this type
26 --> $DIR/struct-path-associated-type.rs:35:20
28 LL | let z = T::A::<u8> {}; //~ ERROR type parameters are not allowed on this type
29 | ^^ type parameter not allowed
31 error[E0223]: ambiguous associated type
32 --> $DIR/struct-path-associated-type.rs:42:13
34 LL | let s = S::A {}; //~ ERROR ambiguous associated type
35 | ^^^^ ambiguous associated type
37 = note: specify the type using the syntax `<S as Trait>::A`
39 error[E0109]: type parameters are not allowed on this type
40 --> $DIR/struct-path-associated-type.rs:43:20
42 LL | let z = S::A::<u8> {}; //~ ERROR ambiguous associated type
43 | ^^ type parameter not allowed
45 error[E0223]: ambiguous associated type
46 --> $DIR/struct-path-associated-type.rs:43:13
48 LL | let z = S::A::<u8> {}; //~ ERROR ambiguous associated type
49 | ^^^^^^^^^^ ambiguous associated type
51 = note: specify the type using the syntax `<S as Trait>::A`
53 error[E0223]: ambiguous associated type
54 --> $DIR/struct-path-associated-type.rs:46:9
56 LL | S::A {} => {} //~ ERROR ambiguous associated type
57 | ^^^^ ambiguous associated type
59 = note: specify the type using the syntax `<S as Trait>::A`
61 error: aborting due to 9 previous errors
63 Some errors occurred: E0071, E0109, E0223.
64 For more information about an error, try `rustc --explain E0071`.