@@ -4,13 +4,19 @@ error[E0071]: expected struct, variant or union type, found associated type
4
4
LL | let s = T::A {};
5
5
| ^^^^ not a struct
6
6
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
9
9
|
10
10
LL | let z = T::A::<u8> {};
11
- | - ^^ type argument not allowed
11
+ | ^------ help: remove these generics
12
12
| |
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
+ | ^
14
20
15
21
error[E0071]: expected struct, variant or union type, found associated type
16
22
--> $DIR/struct-path-associated-type.rs:14:13
@@ -24,13 +30,19 @@ error[E0071]: expected struct, variant or union type, found associated type
24
30
LL | T::A {} => {}
25
31
| ^^^^ not a struct
26
32
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
29
35
|
30
36
LL | let z = T::A::<u8> {};
31
- | - ^^ type argument not allowed
37
+ | ^------ help: remove these generics
32
38
| |
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
+ | ^
34
46
35
47
error[E0223]: ambiguous associated type
36
48
--> $DIR/struct-path-associated-type.rs:32:13
@@ -52,5 +64,5 @@ LL | S::A {} => {}
52
64
53
65
error: aborting due to 8 previous errors
54
66
55
- Some errors have detailed explanations: E0071, E0109 , E0223.
67
+ Some errors have detailed explanations: E0071, E0107 , E0223.
56
68
For more information about an error, try `rustc --explain E0071`.
0 commit comments