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 = note: expected type parameter `T`
13 error[E0109]: type arguments are not allowed for this type
14 --> $DIR/enum-variant-generic-args.rs:15:27
16 LL | Self::TSVariant::<()>(());
17 | ^^ type argument not allowed
19 error[E0109]: type arguments are not allowed for this type
20 --> $DIR/enum-variant-generic-args.rs:17:16
22 LL | Self::<()>::TSVariant(());
23 | ^^ type argument not allowed
25 error[E0308]: mismatched types
26 --> $DIR/enum-variant-generic-args.rs:17:31
28 LL | impl<T> Enum<T> {
29 | - this type parameter
31 LL | Self::<()>::TSVariant(());
32 | ^^ expected type parameter `T`, found `()`
34 = note: expected type parameter `T`
37 error[E0109]: type arguments are not allowed for this type
38 --> $DIR/enum-variant-generic-args.rs:20:16
40 LL | Self::<()>::TSVariant::<()>(());
41 | ^^ type argument not allowed
43 error[E0109]: type arguments are not allowed for this type
44 --> $DIR/enum-variant-generic-args.rs:20:33
46 LL | Self::<()>::TSVariant::<()>(());
47 | ^^ type argument not allowed
49 error[E0308]: mismatched types
50 --> $DIR/enum-variant-generic-args.rs:26:29
52 LL | impl<T> Enum<T> {
53 | - this type parameter
55 LL | Self::SVariant { v: () };
56 | ^^ expected type parameter `T`, found `()`
58 = note: expected type parameter `T`
61 error[E0109]: type arguments are not allowed for this type
62 --> $DIR/enum-variant-generic-args.rs:28:26
64 LL | Self::SVariant::<()> { v: () };
65 | ^^ type argument not allowed
67 error[E0308]: mismatched types
68 --> $DIR/enum-variant-generic-args.rs:28:35
70 LL | impl<T> Enum<T> {
71 | - this type parameter
73 LL | Self::SVariant::<()> { v: () };
74 | ^^ expected type parameter `T`, found `()`
76 = note: expected type parameter `T`
79 error[E0109]: type arguments are not allowed for this type
80 --> $DIR/enum-variant-generic-args.rs:31:16
82 LL | Self::<()>::SVariant { v: () };
83 | ^^ type argument not allowed
85 error[E0308]: mismatched types
86 --> $DIR/enum-variant-generic-args.rs:31:35
88 LL | impl<T> Enum<T> {
89 | - this type parameter
91 LL | Self::<()>::SVariant { v: () };
92 | ^^ expected type parameter `T`, found `()`
94 = note: expected type parameter `T`
97 error[E0109]: type arguments are not allowed for this type
98 --> $DIR/enum-variant-generic-args.rs:34:16
100 LL | Self::<()>::SVariant::<()> { v: () };
101 | ^^ type argument not allowed
103 error[E0109]: type arguments are not allowed for this type
104 --> $DIR/enum-variant-generic-args.rs:34:32
106 LL | Self::<()>::SVariant::<()> { v: () };
107 | ^^ type argument not allowed
109 error[E0308]: mismatched types
110 --> $DIR/enum-variant-generic-args.rs:34:41
112 LL | impl<T> Enum<T> {
113 | - this type parameter
115 LL | Self::<()>::SVariant::<()> { v: () };
116 | ^^ expected type parameter `T`, found `()`
118 = note: expected type parameter `T`
121 error[E0109]: type arguments are not allowed for this type
122 --> $DIR/enum-variant-generic-args.rs:41:26
124 LL | Self::UVariant::<()>;
125 | ^^ type argument not allowed
127 error[E0109]: type arguments are not allowed for this type
128 --> $DIR/enum-variant-generic-args.rs:43:16
130 LL | Self::<()>::UVariant;
131 | ^^ type argument not allowed
133 error[E0109]: type arguments are not allowed for this type
134 --> $DIR/enum-variant-generic-args.rs:45:16
136 LL | Self::<()>::UVariant::<()>;
137 | ^^ type argument not allowed
139 error[E0109]: type arguments are not allowed for this type
140 --> $DIR/enum-variant-generic-args.rs:45:32
142 LL | Self::<()>::UVariant::<()>;
143 | ^^ type argument not allowed
145 error[E0109]: type arguments are not allowed for this type
146 --> $DIR/enum-variant-generic-args.rs:54:29
148 LL | Enum::<()>::TSVariant::<()>(());
149 | ^^ type argument not allowed
151 error[E0109]: type arguments are not allowed for this type
152 --> $DIR/enum-variant-generic-args.rs:57:24
154 LL | Alias::TSVariant::<()>(());
155 | ^^ type argument not allowed
157 error[E0109]: type arguments are not allowed for this type
158 --> $DIR/enum-variant-generic-args.rs:59:30
160 LL | Alias::<()>::TSVariant::<()>(());
161 | ^^ type argument not allowed
163 error[E0109]: type arguments are not allowed for this type
164 --> $DIR/enum-variant-generic-args.rs:62:29
166 LL | AliasFixed::TSVariant::<()>(());
167 | ^^ type argument not allowed
169 error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied
170 --> $DIR/enum-variant-generic-args.rs:64:5
172 LL | AliasFixed::<()>::TSVariant(());
173 | ^^^^^^^^^^------ help: remove these generics
175 | expected 0 type arguments
177 note: type alias defined here, with 0 type parameters
178 --> $DIR/enum-variant-generic-args.rs:9:6
180 LL | type AliasFixed = Enum<()>;
183 error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied
184 --> $DIR/enum-variant-generic-args.rs:66:5
186 LL | AliasFixed::<()>::TSVariant::<()>(());
187 | ^^^^^^^^^^------ help: remove these generics
189 | expected 0 type arguments
191 note: type alias defined here, with 0 type parameters
192 --> $DIR/enum-variant-generic-args.rs:9:6
194 LL | type AliasFixed = Enum<()>;
197 error[E0109]: type arguments are not allowed for this type
198 --> $DIR/enum-variant-generic-args.rs:66:35
200 LL | AliasFixed::<()>::TSVariant::<()>(());
201 | ^^ type argument not allowed
203 error[E0109]: type arguments are not allowed for this type
204 --> $DIR/enum-variant-generic-args.rs:72:28
206 LL | Enum::<()>::SVariant::<()> { v: () };
207 | ^^ type argument not allowed
209 error[E0109]: type arguments are not allowed for this type
210 --> $DIR/enum-variant-generic-args.rs:75:23
212 LL | Alias::SVariant::<()> { v: () };
213 | ^^ type argument not allowed
215 error[E0109]: type arguments are not allowed for this type
216 --> $DIR/enum-variant-generic-args.rs:77:29
218 LL | Alias::<()>::SVariant::<()> { v: () };
219 | ^^ type argument not allowed
221 error[E0109]: type arguments are not allowed for this type
222 --> $DIR/enum-variant-generic-args.rs:80:28
224 LL | AliasFixed::SVariant::<()> { v: () };
225 | ^^ type argument not allowed
227 error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied
228 --> $DIR/enum-variant-generic-args.rs:82:5
230 LL | AliasFixed::<()>::SVariant { v: () };
231 | ^^^^^^^^^^------ help: remove these generics
233 | expected 0 type arguments
235 note: type alias defined here, with 0 type parameters
236 --> $DIR/enum-variant-generic-args.rs:9:6
238 LL | type AliasFixed = Enum<()>;
241 error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied
242 --> $DIR/enum-variant-generic-args.rs:84:5
244 LL | AliasFixed::<()>::SVariant::<()> { v: () };
245 | ^^^^^^^^^^------ help: remove these generics
247 | expected 0 type arguments
249 note: type alias defined here, with 0 type parameters
250 --> $DIR/enum-variant-generic-args.rs:9:6
252 LL | type AliasFixed = Enum<()>;
255 error[E0109]: type arguments are not allowed for this type
256 --> $DIR/enum-variant-generic-args.rs:84:34
258 LL | AliasFixed::<()>::SVariant::<()> { v: () };
259 | ^^ type argument not allowed
261 error[E0109]: type arguments are not allowed for this type
262 --> $DIR/enum-variant-generic-args.rs:90:28
264 LL | Enum::<()>::UVariant::<()>;
265 | ^^ type argument not allowed
267 error[E0109]: type arguments are not allowed for this type
268 --> $DIR/enum-variant-generic-args.rs:93:23
270 LL | Alias::UVariant::<()>;
271 | ^^ type argument not allowed
273 error[E0109]: type arguments are not allowed for this type
274 --> $DIR/enum-variant-generic-args.rs:95:29
276 LL | Alias::<()>::UVariant::<()>;
277 | ^^ type argument not allowed
279 error[E0109]: type arguments are not allowed for this type
280 --> $DIR/enum-variant-generic-args.rs:98:28
282 LL | AliasFixed::UVariant::<()>;
283 | ^^ type argument not allowed
285 error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied
286 --> $DIR/enum-variant-generic-args.rs:100:5
288 LL | AliasFixed::<()>::UVariant;
289 | ^^^^^^^^^^------ help: remove these generics
291 | expected 0 type arguments
293 note: type alias defined here, with 0 type parameters
294 --> $DIR/enum-variant-generic-args.rs:9:6
296 LL | type AliasFixed = Enum<()>;
299 error[E0107]: this type alias takes 0 type arguments but 1 type argument was supplied
300 --> $DIR/enum-variant-generic-args.rs:102:5
302 LL | AliasFixed::<()>::UVariant::<()>;
303 | ^^^^^^^^^^------ help: remove these generics
305 | expected 0 type arguments
307 note: type alias defined here, with 0 type parameters
308 --> $DIR/enum-variant-generic-args.rs:9:6
310 LL | type AliasFixed = Enum<()>;
313 error[E0109]: type arguments are not allowed for this type
314 --> $DIR/enum-variant-generic-args.rs:102:34
316 LL | AliasFixed::<()>::UVariant::<()>;
317 | ^^ type argument not allowed
319 error: aborting due to 39 previous errors
321 Some errors have detailed explanations: E0107, E0109, E0308.
322 For more information about an error, try `rustc --explain E0107`.