]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-enum-variants/enum-variant-generic-args.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / type-alias-enum-variants / enum-variant-generic-args.stderr
CommitLineData
0731742a 1error[E0308]: mismatched types
dc9dc135 2 --> $DIR/enum-variant-generic-args.rs:13:25
0731742a 3 |
60c5eb7d
XL
4LL | impl<T> Enum<T> {
5 | - this type parameter
6LL | fn ts_variant() {
0731742a 7LL | Self::TSVariant(());
60c5eb7d 8 | ^^ expected type parameter `T`, found `()`
0731742a 9 |
60c5eb7d
XL
10 = note: expected type parameter `T`
11 found unit type `()`
0731742a 12
532ac7d7 13error[E0109]: type arguments are not allowed for this type
dc9dc135 14 --> $DIR/enum-variant-generic-args.rs:15:27
0731742a
XL
15 |
16LL | Self::TSVariant::<()>(());
17 | ^^ type argument not allowed
18
532ac7d7 19error[E0109]: type arguments are not allowed for this type
dc9dc135 20 --> $DIR/enum-variant-generic-args.rs:17:16
0731742a
XL
21 |
22LL | Self::<()>::TSVariant(());
23 | ^^ type argument not allowed
24
25error[E0308]: mismatched types
dc9dc135 26 --> $DIR/enum-variant-generic-args.rs:17:31
0731742a 27 |
60c5eb7d
XL
28LL | impl<T> Enum<T> {
29 | - this type parameter
30...
0731742a 31LL | Self::<()>::TSVariant(());
60c5eb7d 32 | ^^ expected type parameter `T`, found `()`
0731742a 33 |
60c5eb7d
XL
34 = note: expected type parameter `T`
35 found unit type `()`
0731742a 36
532ac7d7 37error[E0109]: type arguments are not allowed for this type
dc9dc135 38 --> $DIR/enum-variant-generic-args.rs:20:16
0731742a
XL
39 |
40LL | Self::<()>::TSVariant::<()>(());
41 | ^^ type argument not allowed
42
532ac7d7 43error[E0109]: type arguments are not allowed for this type
dc9dc135 44 --> $DIR/enum-variant-generic-args.rs:20:33
0731742a
XL
45 |
46LL | Self::<()>::TSVariant::<()>(());
47 | ^^ type argument not allowed
48
49error[E0308]: mismatched types
dc9dc135 50 --> $DIR/enum-variant-generic-args.rs:26:29
0731742a 51 |
60c5eb7d
XL
52LL | impl<T> Enum<T> {
53 | - this type parameter
54...
0731742a 55LL | Self::SVariant { v: () };
60c5eb7d 56 | ^^ expected type parameter `T`, found `()`
0731742a 57 |
60c5eb7d
XL
58 = note: expected type parameter `T`
59 found unit type `()`
0731742a 60
532ac7d7 61error[E0109]: type arguments are not allowed for this type
dc9dc135 62 --> $DIR/enum-variant-generic-args.rs:28:26
0731742a
XL
63 |
64LL | Self::SVariant::<()> { v: () };
65 | ^^ type argument not allowed
66
67error[E0308]: mismatched types
dc9dc135 68 --> $DIR/enum-variant-generic-args.rs:28:35
0731742a 69 |
60c5eb7d
XL
70LL | impl<T> Enum<T> {
71 | - this type parameter
72...
0731742a 73LL | Self::SVariant::<()> { v: () };
60c5eb7d 74 | ^^ expected type parameter `T`, found `()`
0731742a 75 |
60c5eb7d
XL
76 = note: expected type parameter `T`
77 found unit type `()`
0731742a 78
532ac7d7 79error[E0109]: type arguments are not allowed for this type
dc9dc135 80 --> $DIR/enum-variant-generic-args.rs:31:16
0731742a
XL
81 |
82LL | Self::<()>::SVariant { v: () };
83 | ^^ type argument not allowed
84
85error[E0308]: mismatched types
dc9dc135 86 --> $DIR/enum-variant-generic-args.rs:31:35
0731742a 87 |
60c5eb7d
XL
88LL | impl<T> Enum<T> {
89 | - this type parameter
90...
0731742a 91LL | Self::<()>::SVariant { v: () };
60c5eb7d 92 | ^^ expected type parameter `T`, found `()`
0731742a 93 |
60c5eb7d
XL
94 = note: expected type parameter `T`
95 found unit type `()`
0731742a 96
532ac7d7 97error[E0109]: type arguments are not allowed for this type
dc9dc135 98 --> $DIR/enum-variant-generic-args.rs:34:16
0731742a
XL
99 |
100LL | Self::<()>::SVariant::<()> { v: () };
101 | ^^ type argument not allowed
102
532ac7d7 103error[E0109]: type arguments are not allowed for this type
dc9dc135 104 --> $DIR/enum-variant-generic-args.rs:34:32
0731742a
XL
105 |
106LL | Self::<()>::SVariant::<()> { v: () };
107 | ^^ type argument not allowed
108
109error[E0308]: mismatched types
dc9dc135 110 --> $DIR/enum-variant-generic-args.rs:34:41
0731742a 111 |
60c5eb7d
XL
112LL | impl<T> Enum<T> {
113 | - this type parameter
114...
0731742a 115LL | Self::<()>::SVariant::<()> { v: () };
60c5eb7d 116 | ^^ expected type parameter `T`, found `()`
0731742a 117 |
60c5eb7d
XL
118 = note: expected type parameter `T`
119 found unit type `()`
0731742a 120
532ac7d7 121error[E0109]: type arguments are not allowed for this type
dc9dc135
XL
122 --> $DIR/enum-variant-generic-args.rs:41:26
123 |
124LL | Self::UVariant::<()>;
125 | ^^ type argument not allowed
126
127error[E0109]: type arguments are not allowed for this type
128 --> $DIR/enum-variant-generic-args.rs:43:16
129 |
130LL | Self::<()>::UVariant;
131 | ^^ type argument not allowed
132
133error[E0109]: type arguments are not allowed for this type
134 --> $DIR/enum-variant-generic-args.rs:45:16
135 |
136LL | Self::<()>::UVariant::<()>;
137 | ^^ type argument not allowed
138
139error[E0109]: type arguments are not allowed for this type
140 --> $DIR/enum-variant-generic-args.rs:45:32
141 |
142LL | Self::<()>::UVariant::<()>;
143 | ^^ type argument not allowed
144
145error[E0109]: type arguments are not allowed for this type
146 --> $DIR/enum-variant-generic-args.rs:54:29
0731742a
XL
147 |
148LL | Enum::<()>::TSVariant::<()>(());
149 | ^^ type argument not allowed
150
532ac7d7 151error[E0109]: type arguments are not allowed for this type
dc9dc135 152 --> $DIR/enum-variant-generic-args.rs:57:24
0731742a
XL
153 |
154LL | Alias::TSVariant::<()>(());
155 | ^^ type argument not allowed
156
532ac7d7 157error[E0109]: type arguments are not allowed for this type
dc9dc135 158 --> $DIR/enum-variant-generic-args.rs:59:30
0731742a
XL
159 |
160LL | Alias::<()>::TSVariant::<()>(());
161 | ^^ type argument not allowed
162
532ac7d7 163error[E0109]: type arguments are not allowed for this type
dc9dc135 164 --> $DIR/enum-variant-generic-args.rs:62:29
0731742a
XL
165 |
166LL | AliasFixed::TSVariant::<()>(());
167 | ^^ type argument not allowed
168
5869c6ff
XL
169error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied
170 --> $DIR/enum-variant-generic-args.rs:64:5
0731742a
XL
171 |
172LL | AliasFixed::<()>::TSVariant(());
5869c6ff
XL
173 | ^^^^^^^^^^------ help: remove these generics
174 | |
175 | expected 0 type arguments
176 |
177note: type alias defined here, with 0 type parameters
178 --> $DIR/enum-variant-generic-args.rs:9:6
179 |
180LL | type AliasFixed = Enum<()>;
181 | ^^^^^^^^^^
0731742a 182
5869c6ff
XL
183error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied
184 --> $DIR/enum-variant-generic-args.rs:66:5
0731742a
XL
185 |
186LL | AliasFixed::<()>::TSVariant::<()>(());
5869c6ff
XL
187 | ^^^^^^^^^^------ help: remove these generics
188 | |
189 | expected 0 type arguments
190 |
191note: type alias defined here, with 0 type parameters
192 --> $DIR/enum-variant-generic-args.rs:9:6
193 |
194LL | type AliasFixed = Enum<()>;
195 | ^^^^^^^^^^
0731742a 196
532ac7d7 197error[E0109]: type arguments are not allowed for this type
dc9dc135 198 --> $DIR/enum-variant-generic-args.rs:66:35
0731742a
XL
199 |
200LL | AliasFixed::<()>::TSVariant::<()>(());
201 | ^^ type argument not allowed
202
532ac7d7 203error[E0109]: type arguments are not allowed for this type
dc9dc135 204 --> $DIR/enum-variant-generic-args.rs:72:28
0731742a
XL
205 |
206LL | Enum::<()>::SVariant::<()> { v: () };
207 | ^^ type argument not allowed
208
532ac7d7 209error[E0109]: type arguments are not allowed for this type
dc9dc135 210 --> $DIR/enum-variant-generic-args.rs:75:23
0731742a
XL
211 |
212LL | Alias::SVariant::<()> { v: () };
213 | ^^ type argument not allowed
214
532ac7d7 215error[E0109]: type arguments are not allowed for this type
dc9dc135 216 --> $DIR/enum-variant-generic-args.rs:77:29
0731742a
XL
217 |
218LL | Alias::<()>::SVariant::<()> { v: () };
219 | ^^ type argument not allowed
220
532ac7d7 221error[E0109]: type arguments are not allowed for this type
dc9dc135 222 --> $DIR/enum-variant-generic-args.rs:80:28
0731742a
XL
223 |
224LL | AliasFixed::SVariant::<()> { v: () };
225 | ^^ type argument not allowed
226
5869c6ff
XL
227error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied
228 --> $DIR/enum-variant-generic-args.rs:82:5
0731742a
XL
229 |
230LL | AliasFixed::<()>::SVariant { v: () };
5869c6ff
XL
231 | ^^^^^^^^^^------ help: remove these generics
232 | |
233 | expected 0 type arguments
234 |
235note: type alias defined here, with 0 type parameters
236 --> $DIR/enum-variant-generic-args.rs:9:6
237 |
238LL | type AliasFixed = Enum<()>;
239 | ^^^^^^^^^^
0731742a 240
5869c6ff
XL
241error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied
242 --> $DIR/enum-variant-generic-args.rs:84:5
0731742a
XL
243 |
244LL | AliasFixed::<()>::SVariant::<()> { v: () };
5869c6ff
XL
245 | ^^^^^^^^^^------ help: remove these generics
246 | |
247 | expected 0 type arguments
248 |
249note: type alias defined here, with 0 type parameters
250 --> $DIR/enum-variant-generic-args.rs:9:6
251 |
252LL | type AliasFixed = Enum<()>;
253 | ^^^^^^^^^^
0731742a 254
532ac7d7 255error[E0109]: type arguments are not allowed for this type
dc9dc135 256 --> $DIR/enum-variant-generic-args.rs:84:34
0731742a
XL
257 |
258LL | AliasFixed::<()>::SVariant::<()> { v: () };
259 | ^^ type argument not allowed
260
dc9dc135
XL
261error[E0109]: type arguments are not allowed for this type
262 --> $DIR/enum-variant-generic-args.rs:90:28
263 |
264LL | Enum::<()>::UVariant::<()>;
265 | ^^ type argument not allowed
266
267error[E0109]: type arguments are not allowed for this type
268 --> $DIR/enum-variant-generic-args.rs:93:23
269 |
270LL | Alias::UVariant::<()>;
271 | ^^ type argument not allowed
272
273error[E0109]: type arguments are not allowed for this type
274 --> $DIR/enum-variant-generic-args.rs:95:29
275 |
276LL | Alias::<()>::UVariant::<()>;
277 | ^^ type argument not allowed
278
279error[E0109]: type arguments are not allowed for this type
280 --> $DIR/enum-variant-generic-args.rs:98:28
281 |
282LL | AliasFixed::UVariant::<()>;
283 | ^^ type argument not allowed
284
5869c6ff
XL
285error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied
286 --> $DIR/enum-variant-generic-args.rs:100:5
dc9dc135
XL
287 |
288LL | AliasFixed::<()>::UVariant;
5869c6ff
XL
289 | ^^^^^^^^^^------ help: remove these generics
290 | |
291 | expected 0 type arguments
292 |
293note: type alias defined here, with 0 type parameters
294 --> $DIR/enum-variant-generic-args.rs:9:6
295 |
296LL | type AliasFixed = Enum<()>;
297 | ^^^^^^^^^^
dc9dc135 298
5869c6ff
XL
299error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied
300 --> $DIR/enum-variant-generic-args.rs:102:5
dc9dc135
XL
301 |
302LL | AliasFixed::<()>::UVariant::<()>;
5869c6ff
XL
303 | ^^^^^^^^^^------ help: remove these generics
304 | |
305 | expected 0 type arguments
306 |
307note: type alias defined here, with 0 type parameters
308 --> $DIR/enum-variant-generic-args.rs:9:6
309 |
310LL | type AliasFixed = Enum<()>;
311 | ^^^^^^^^^^
dc9dc135
XL
312
313error[E0109]: type arguments are not allowed for this type
314 --> $DIR/enum-variant-generic-args.rs:102:34
315 |
316LL | AliasFixed::<()>::UVariant::<()>;
317 | ^^ type argument not allowed
318
319error: aborting due to 39 previous errors
0731742a 320
48663c56 321Some errors have detailed explanations: E0107, E0109, E0308.
0731742a 322For more information about an error, try `rustc --explain E0107`.