1 error[E0308]: mismatched types
2 --> $DIR/enum-variant-generic-args.rs:13:25
5 | - this type parameter
7 LL | Self::TSVariant(());
8 | --------------- ^^ expected type parameter `T`, found `()`
10 | arguments to this function are incorrect
12 = note: expected type parameter `T`
14 note: tuple variant defined here
15 --> $DIR/enum-variant-generic-args.rs:7:16
17 LL | enum Enum<T> { TSVariant(T), SVariant { v: T }, UVariant }
20 error[E0109]: type arguments are not allowed for this type
21 --> $DIR/enum-variant-generic-args.rs:15:27
23 LL | Self::TSVariant::<()>(());
24 | ^^ type argument not allowed
26 error[E0109]: type arguments are not allowed for this type
27 --> $DIR/enum-variant-generic-args.rs:17:16
29 LL | Self::<()>::TSVariant(());
30 | ^^ type argument not allowed
32 error[E0308]: mismatched types
33 --> $DIR/enum-variant-generic-args.rs:17:31
35 LL | impl<T> Enum<T> {
36 | - this type parameter
38 LL | Self::<()>::TSVariant(());
39 | --------------------- ^^ expected type parameter `T`, found `()`
41 | arguments to this function are incorrect
43 = note: expected type parameter `T`
45 note: tuple variant defined here
46 --> $DIR/enum-variant-generic-args.rs:7:16
48 LL | enum Enum<T> { TSVariant(T), SVariant { v: T }, UVariant }
51 error[E0109]: type arguments are not allowed for this type
52 --> $DIR/enum-variant-generic-args.rs:20:16
54 LL | Self::<()>::TSVariant::<()>(());
55 | ^^ type argument not allowed
57 error[E0109]: type arguments are not allowed for this type
58 --> $DIR/enum-variant-generic-args.rs:20:33
60 LL | Self::<()>::TSVariant::<()>(());
61 | ^^ type argument not allowed
63 error[E0308]: mismatched types
64 --> $DIR/enum-variant-generic-args.rs:26:29
66 LL | impl<T> Enum<T> {
67 | - this type parameter
69 LL | Self::SVariant { v: () };
70 | ^^ expected type parameter `T`, found `()`
72 = note: expected type parameter `T`
75 error[E0109]: type arguments are not allowed for this type
76 --> $DIR/enum-variant-generic-args.rs:28:26
78 LL | Self::SVariant::<()> { v: () };
79 | ^^ type argument not allowed
81 error[E0308]: mismatched types
82 --> $DIR/enum-variant-generic-args.rs:28:35
84 LL | impl<T> Enum<T> {
85 | - this type parameter
87 LL | Self::SVariant::<()> { v: () };
88 | ^^ expected type parameter `T`, found `()`
90 = note: expected type parameter `T`
93 error[E0109]: type arguments are not allowed for this type
94 --> $DIR/enum-variant-generic-args.rs:31:16
96 LL | Self::<()>::SVariant { v: () };
97 | ^^ type argument not allowed
99 error[E0308]: mismatched types
100 --> $DIR/enum-variant-generic-args.rs:31:35
102 LL | impl<T> Enum<T> {
103 | - this type parameter
105 LL | Self::<()>::SVariant { v: () };
106 | ^^ expected type parameter `T`, found `()`
108 = note: expected type parameter `T`
111 error[E0109]: type arguments are not allowed for this type
112 --> $DIR/enum-variant-generic-args.rs:34:16
114 LL | Self::<()>::SVariant::<()> { v: () };
115 | ^^ type argument not allowed
117 error[E0109]: type arguments are not allowed for this type
118 --> $DIR/enum-variant-generic-args.rs:34:32
120 LL | Self::<()>::SVariant::<()> { v: () };
121 | ^^ type argument not allowed
123 error[E0308]: mismatched types
124 --> $DIR/enum-variant-generic-args.rs:34:41
126 LL | impl<T> Enum<T> {
127 | - this type parameter
129 LL | Self::<()>::SVariant::<()> { v: () };
130 | ^^ expected type parameter `T`, found `()`
132 = note: expected type parameter `T`
135 error[E0109]: type arguments are not allowed for this type
136 --> $DIR/enum-variant-generic-args.rs:41:26
138 LL | Self::UVariant::<()>;
139 | ^^ type argument not allowed
141 error[E0109]: type arguments are not allowed for this type
142 --> $DIR/enum-variant-generic-args.rs:43:16
144 LL | Self::<()>::UVariant;
145 | ^^ type argument not allowed
147 error[E0109]: type arguments are not allowed for this type
148 --> $DIR/enum-variant-generic-args.rs:45:16
150 LL | Self::<()>::UVariant::<()>;
151 | ^^ type argument not allowed
153 error[E0109]: type arguments are not allowed for this type
154 --> $DIR/enum-variant-generic-args.rs:45:32
156 LL | Self::<()>::UVariant::<()>;
157 | ^^ type argument not allowed
159 error[E0109]: type arguments are not allowed for this type
160 --> $DIR/enum-variant-generic-args.rs:54:29
162 LL | Enum::<()>::TSVariant::<()>(());
163 | ^^ type argument not allowed
165 error[E0109]: type arguments are not allowed for this type
166 --> $DIR/enum-variant-generic-args.rs:57:24
168 LL | Alias::TSVariant::<()>(());
169 | ^^ type argument not allowed
171 error[E0109]: type arguments are not allowed for this type
172 --> $DIR/enum-variant-generic-args.rs:59:30
174 LL | Alias::<()>::TSVariant::<()>(());
175 | ^^ type argument not allowed
177 error[E0109]: type arguments are not allowed for this type
178 --> $DIR/enum-variant-generic-args.rs:62:29
180 LL | AliasFixed::TSVariant::<()>(());
181 | ^^ type argument not allowed
183 error[E0107]: this type alias takes 0 generic arguments but 1 generic argument was supplied
184 --> $DIR/enum-variant-generic-args.rs:64:5
186 LL | AliasFixed::<()>::TSVariant(());
187 | ^^^^^^^^^^------ help: remove these generics
189 | expected 0 generic arguments
191 note: type alias defined here, with 0 generic parameters
192 --> $DIR/enum-variant-generic-args.rs:9:6
194 LL | type AliasFixed = Enum<()>;
197 error[E0107]: this type alias takes 0 generic arguments but 1 generic argument was supplied
198 --> $DIR/enum-variant-generic-args.rs:66:5
200 LL | AliasFixed::<()>::TSVariant::<()>(());
201 | ^^^^^^^^^^------ help: remove these generics
203 | expected 0 generic arguments
205 note: type alias defined here, with 0 generic parameters
206 --> $DIR/enum-variant-generic-args.rs:9:6
208 LL | type AliasFixed = Enum<()>;
211 error[E0109]: type arguments are not allowed for this type
212 --> $DIR/enum-variant-generic-args.rs:66:35
214 LL | AliasFixed::<()>::TSVariant::<()>(());
215 | ^^ type argument not allowed
217 error[E0109]: type arguments are not allowed for this type
218 --> $DIR/enum-variant-generic-args.rs:72:28
220 LL | Enum::<()>::SVariant::<()> { v: () };
221 | ^^ type argument not allowed
223 error[E0109]: type arguments are not allowed for this type
224 --> $DIR/enum-variant-generic-args.rs:75:23
226 LL | Alias::SVariant::<()> { v: () };
227 | ^^ type argument not allowed
229 error[E0109]: type arguments are not allowed for this type
230 --> $DIR/enum-variant-generic-args.rs:77:29
232 LL | Alias::<()>::SVariant::<()> { v: () };
233 | ^^ type argument not allowed
235 error[E0109]: type arguments are not allowed for this type
236 --> $DIR/enum-variant-generic-args.rs:80:28
238 LL | AliasFixed::SVariant::<()> { v: () };
239 | ^^ type argument not allowed
241 error[E0107]: this type alias takes 0 generic arguments but 1 generic argument was supplied
242 --> $DIR/enum-variant-generic-args.rs:82:5
244 LL | AliasFixed::<()>::SVariant { v: () };
245 | ^^^^^^^^^^------ help: remove these generics
247 | expected 0 generic arguments
249 note: type alias defined here, with 0 generic parameters
250 --> $DIR/enum-variant-generic-args.rs:9:6
252 LL | type AliasFixed = Enum<()>;
255 error[E0107]: this type alias takes 0 generic arguments but 1 generic argument was supplied
256 --> $DIR/enum-variant-generic-args.rs:84:5
258 LL | AliasFixed::<()>::SVariant::<()> { v: () };
259 | ^^^^^^^^^^------ help: remove these generics
261 | expected 0 generic arguments
263 note: type alias defined here, with 0 generic parameters
264 --> $DIR/enum-variant-generic-args.rs:9:6
266 LL | type AliasFixed = Enum<()>;
269 error[E0109]: type arguments are not allowed for this type
270 --> $DIR/enum-variant-generic-args.rs:84:34
272 LL | AliasFixed::<()>::SVariant::<()> { v: () };
273 | ^^ type argument not allowed
275 error[E0109]: type arguments are not allowed for this type
276 --> $DIR/enum-variant-generic-args.rs:90:28
278 LL | Enum::<()>::UVariant::<()>;
279 | ^^ type argument not allowed
281 error[E0109]: type arguments are not allowed for this type
282 --> $DIR/enum-variant-generic-args.rs:93:23
284 LL | Alias::UVariant::<()>;
285 | ^^ type argument not allowed
287 error[E0109]: type arguments are not allowed for this type
288 --> $DIR/enum-variant-generic-args.rs:95:29
290 LL | Alias::<()>::UVariant::<()>;
291 | ^^ type argument not allowed
293 error[E0109]: type arguments are not allowed for this type
294 --> $DIR/enum-variant-generic-args.rs:98:28
296 LL | AliasFixed::UVariant::<()>;
297 | ^^ type argument not allowed
299 error[E0107]: this type alias takes 0 generic arguments but 1 generic argument was supplied
300 --> $DIR/enum-variant-generic-args.rs:100:5
302 LL | AliasFixed::<()>::UVariant;
303 | ^^^^^^^^^^------ help: remove these generics
305 | expected 0 generic arguments
307 note: type alias defined here, with 0 generic parameters
308 --> $DIR/enum-variant-generic-args.rs:9:6
310 LL | type AliasFixed = Enum<()>;
313 error[E0107]: this type alias takes 0 generic arguments but 1 generic argument was supplied
314 --> $DIR/enum-variant-generic-args.rs:102:5
316 LL | AliasFixed::<()>::UVariant::<()>;
317 | ^^^^^^^^^^------ help: remove these generics
319 | expected 0 generic arguments
321 note: type alias defined here, with 0 generic parameters
322 --> $DIR/enum-variant-generic-args.rs:9:6
324 LL | type AliasFixed = Enum<()>;
327 error[E0109]: type arguments are not allowed for this type
328 --> $DIR/enum-variant-generic-args.rs:102:34
330 LL | AliasFixed::<()>::UVariant::<()>;
331 | ^^ type argument not allowed
333 error: aborting due to 39 previous errors
335 Some errors have detailed explanations: E0107, E0109, E0308.
336 For more information about an error, try `rustc --explain E0107`.