@@ -4,13 +4,19 @@ error[E0071]: expected struct, variant or union type, found associated type
44LL | let s = T::A {};
55 | ^^^^ not a struct
66
7- error[E0109 ]: type arguments are not allowed on this type
8- --> $DIR/struct-path-associated-type.rs:14:20
7+ error[E0107 ]: this associated type takes 0 generic arguments but 1 generic argument was supplied
8+ --> $DIR/struct-path-associated-type.rs:14:16
99 |
1010LL | let z = T::A::<u8> {};
11- | - ^^ type argument not allowed
11+ | ^------ help: remove these generics
1212 | |
13- | not allowed on this type
13+ | expected 0 generic arguments
14+ |
15+ note: associated type defined here, with 0 generic parameters
16+ --> $DIR/struct-path-associated-type.rs:4:10
17+ |
18+ LL | type A;
19+ | ^
1420
1521error[E0071]: expected struct, variant or union type, found associated type
1622 --> $DIR/struct-path-associated-type.rs:14:13
@@ -24,13 +30,19 @@ error[E0071]: expected struct, variant or union type, found associated type
2430LL | T::A {} => {}
2531 | ^^^^ not a struct
2632
27- error[E0109 ]: type arguments are not allowed on this type
28- --> $DIR/struct-path-associated-type.rs:25:20
33+ error[E0107 ]: this associated type takes 0 generic arguments but 1 generic argument was supplied
34+ --> $DIR/struct-path-associated-type.rs:25:16
2935 |
3036LL | let z = T::A::<u8> {};
31- | - ^^ type argument not allowed
37+ | ^------ help: remove these generics
3238 | |
33- | not allowed on this type
39+ | expected 0 generic arguments
40+ |
41+ note: associated type defined here, with 0 generic parameters
42+ --> $DIR/struct-path-associated-type.rs:4:10
43+ |
44+ LL | type A;
45+ | ^
3446
3547error[E0223]: ambiguous associated type
3648 --> $DIR/struct-path-associated-type.rs:32:13
@@ -52,5 +64,5 @@ LL | S::A {} => {}
5264
5365error: aborting due to 8 previous errors
5466
55- Some errors have detailed explanations: E0071, E0109 , E0223.
67+ Some errors have detailed explanations: E0071, E0107 , E0223.
5668For more information about an error, try `rustc --explain E0071`.
0 commit comments