@@ -7,13 +7,13 @@ LL | Self::TSVariant(());
77 = note: expected type `T`
88 found type `()`
99
10- error[E0109]: type arguments are not allowed on this entity
10+ error[E0109]: type arguments are not allowed for this type
1111 --> $DIR/enum-variant-generic-args.rs:11:27
1212 |
1313LL | Self::TSVariant::<()>(());
1414 | ^^ type argument not allowed
1515
16- error[E0109]: type arguments are not allowed on this entity
16+ error[E0109]: type arguments are not allowed for this type
1717 --> $DIR/enum-variant-generic-args.rs:13:16
1818 |
1919LL | Self::<()>::TSVariant(());
@@ -28,13 +28,13 @@ LL | Self::<()>::TSVariant(());
2828 = note: expected type `T`
2929 found type `()`
3030
31- error[E0109]: type arguments are not allowed on this entity
31+ error[E0109]: type arguments are not allowed for this type
3232 --> $DIR/enum-variant-generic-args.rs:16:16
3333 |
3434LL | Self::<()>::TSVariant::<()>(());
3535 | ^^ type argument not allowed
3636
37- error[E0109]: type arguments are not allowed on this entity
37+ error[E0109]: type arguments are not allowed for this type
3838 --> $DIR/enum-variant-generic-args.rs:16:33
3939 |
4040LL | Self::<()>::TSVariant::<()>(());
@@ -49,7 +49,7 @@ LL | Self::SVariant { v: () };
4949 = note: expected type `T`
5050 found type `()`
5151
52- error[E0109]: type arguments are not allowed on this entity
52+ error[E0109]: type arguments are not allowed for this type
5353 --> $DIR/enum-variant-generic-args.rs:24:26
5454 |
5555LL | Self::SVariant::<()> { v: () };
@@ -64,7 +64,7 @@ LL | Self::SVariant::<()> { v: () };
6464 = note: expected type `T`
6565 found type `()`
6666
67- error[E0109]: type arguments are not allowed on this entity
67+ error[E0109]: type arguments are not allowed for this type
6868 --> $DIR/enum-variant-generic-args.rs:27:16
6969 |
7070LL | Self::<()>::SVariant { v: () };
@@ -79,13 +79,13 @@ LL | Self::<()>::SVariant { v: () };
7979 = note: expected type `T`
8080 found type `()`
8181
82- error[E0109]: type arguments are not allowed on this entity
82+ error[E0109]: type arguments are not allowed for this type
8383 --> $DIR/enum-variant-generic-args.rs:30:16
8484 |
8585LL | Self::<()>::SVariant::<()> { v: () };
8686 | ^^ type argument not allowed
8787
88- error[E0109]: type arguments are not allowed on this entity
88+ error[E0109]: type arguments are not allowed for this type
8989 --> $DIR/enum-variant-generic-args.rs:30:32
9090 |
9191LL | Self::<()>::SVariant::<()> { v: () };
@@ -100,25 +100,25 @@ LL | Self::<()>::SVariant::<()> { v: () };
100100 = note: expected type `T`
101101 found type `()`
102102
103- error[E0109]: type arguments are not allowed on this entity
103+ error[E0109]: type arguments are not allowed for this type
104104 --> $DIR/enum-variant-generic-args.rs:40:29
105105 |
106106LL | Enum::<()>::TSVariant::<()>(());
107107 | ^^ type argument not allowed
108108
109- error[E0109]: type arguments are not allowed on this entity
109+ error[E0109]: type arguments are not allowed for this type
110110 --> $DIR/enum-variant-generic-args.rs:43:24
111111 |
112112LL | Alias::TSVariant::<()>(());
113113 | ^^ type argument not allowed
114114
115- error[E0109]: type arguments are not allowed on this entity
115+ error[E0109]: type arguments are not allowed for this type
116116 --> $DIR/enum-variant-generic-args.rs:45:30
117117 |
118118LL | Alias::<()>::TSVariant::<()>(());
119119 | ^^ type argument not allowed
120120
121- error[E0109]: type arguments are not allowed on this entity
121+ error[E0109]: type arguments are not allowed for this type
122122 --> $DIR/enum-variant-generic-args.rs:48:29
123123 |
124124LL | AliasFixed::TSVariant::<()>(());
@@ -136,31 +136,31 @@ error[E0107]: wrong number of type arguments: expected 0, found 1
136136LL | AliasFixed::<()>::TSVariant::<()>(());
137137 | ^^ unexpected type argument
138138
139- error[E0109]: type arguments are not allowed on this entity
139+ error[E0109]: type arguments are not allowed for this type
140140 --> $DIR/enum-variant-generic-args.rs:52:35
141141 |
142142LL | AliasFixed::<()>::TSVariant::<()>(());
143143 | ^^ type argument not allowed
144144
145- error[E0109]: type arguments are not allowed on this entity
145+ error[E0109]: type arguments are not allowed for this type
146146 --> $DIR/enum-variant-generic-args.rs:58:28
147147 |
148148LL | Enum::<()>::SVariant::<()> { v: () };
149149 | ^^ type argument not allowed
150150
151- error[E0109]: type arguments are not allowed on this entity
151+ error[E0109]: type arguments are not allowed for this type
152152 --> $DIR/enum-variant-generic-args.rs:61:23
153153 |
154154LL | Alias::SVariant::<()> { v: () };
155155 | ^^ type argument not allowed
156156
157- error[E0109]: type arguments are not allowed on this entity
157+ error[E0109]: type arguments are not allowed for this type
158158 --> $DIR/enum-variant-generic-args.rs:63:29
159159 |
160160LL | Alias::<()>::SVariant::<()> { v: () };
161161 | ^^ type argument not allowed
162162
163- error[E0109]: type arguments are not allowed on this entity
163+ error[E0109]: type arguments are not allowed for this type
164164 --> $DIR/enum-variant-generic-args.rs:66:28
165165 |
166166LL | AliasFixed::SVariant::<()> { v: () };
@@ -178,7 +178,7 @@ error[E0107]: wrong number of type arguments: expected 0, found 1
178178LL | AliasFixed::<()>::SVariant::<()> { v: () };
179179 | ^^ unexpected type argument
180180
181- error[E0109]: type arguments are not allowed on this entity
181+ error[E0109]: type arguments are not allowed for this type
182182 --> $DIR/enum-variant-generic-args.rs:70:34
183183 |
184184LL | AliasFixed::<()>::SVariant::<()> { v: () };
0 commit comments