1 error[E0308]: mismatched types
2 --> $DIR/enum-variant-generic-args.rs:9:25
4 LL | Self::TSVariant(());
5 | ^^ expected type parameter, found ()
7 = note: expected type `T`
10 error[E0109]: type arguments are not allowed on this entity
11 --> $DIR/enum-variant-generic-args.rs:11:27
13 LL | Self::TSVariant::<()>(());
14 | ^^ type argument not allowed
16 error[E0109]: type arguments are not allowed on this entity
17 --> $DIR/enum-variant-generic-args.rs:13:16
19 LL | Self::<()>::TSVariant(());
20 | ^^ type argument not allowed
22 error[E0308]: mismatched types
23 --> $DIR/enum-variant-generic-args.rs:13:31
25 LL | Self::<()>::TSVariant(());
26 | ^^ expected type parameter, found ()
28 = note: expected type `T`
31 error[E0109]: type arguments are not allowed on this entity
32 --> $DIR/enum-variant-generic-args.rs:16:16
34 LL | Self::<()>::TSVariant::<()>(());
35 | ^^ type argument not allowed
37 error[E0109]: type arguments are not allowed on this entity
38 --> $DIR/enum-variant-generic-args.rs:16:33
40 LL | Self::<()>::TSVariant::<()>(());
41 | ^^ type argument not allowed
43 error[E0308]: mismatched types
44 --> $DIR/enum-variant-generic-args.rs:22:29
46 LL | Self::SVariant { v: () };
47 | ^^ expected type parameter, found ()
49 = note: expected type `T`
52 error[E0109]: type arguments are not allowed on this entity
53 --> $DIR/enum-variant-generic-args.rs:24:26
55 LL | Self::SVariant::<()> { v: () };
56 | ^^ type argument not allowed
58 error[E0308]: mismatched types
59 --> $DIR/enum-variant-generic-args.rs:24:35
61 LL | Self::SVariant::<()> { v: () };
62 | ^^ expected type parameter, found ()
64 = note: expected type `T`
67 error[E0109]: type arguments are not allowed on this entity
68 --> $DIR/enum-variant-generic-args.rs:27:16
70 LL | Self::<()>::SVariant { v: () };
71 | ^^ type argument not allowed
73 error[E0308]: mismatched types
74 --> $DIR/enum-variant-generic-args.rs:27:35
76 LL | Self::<()>::SVariant { v: () };
77 | ^^ expected type parameter, found ()
79 = note: expected type `T`
82 error[E0109]: type arguments are not allowed on this entity
83 --> $DIR/enum-variant-generic-args.rs:30:16
85 LL | Self::<()>::SVariant::<()> { v: () };
86 | ^^ type argument not allowed
88 error[E0109]: type arguments are not allowed on this entity
89 --> $DIR/enum-variant-generic-args.rs:30:32
91 LL | Self::<()>::SVariant::<()> { v: () };
92 | ^^ type argument not allowed
94 error[E0308]: mismatched types
95 --> $DIR/enum-variant-generic-args.rs:30:41
97 LL | Self::<()>::SVariant::<()> { v: () };
98 | ^^ expected type parameter, found ()
100 = note: expected type `T`
103 error[E0109]: type arguments are not allowed on this entity
104 --> $DIR/enum-variant-generic-args.rs:40:29
106 LL | Enum::<()>::TSVariant::<()>(());
107 | ^^ type argument not allowed
109 error[E0109]: type arguments are not allowed on this entity
110 --> $DIR/enum-variant-generic-args.rs:43:24
112 LL | Alias::TSVariant::<()>(());
113 | ^^ type argument not allowed
115 error[E0109]: type arguments are not allowed on this entity
116 --> $DIR/enum-variant-generic-args.rs:45:30
118 LL | Alias::<()>::TSVariant::<()>(());
119 | ^^ type argument not allowed
121 error[E0109]: type arguments are not allowed on this entity
122 --> $DIR/enum-variant-generic-args.rs:48:29
124 LL | AliasFixed::TSVariant::<()>(());
125 | ^^ type argument not allowed
127 error[E0107]: wrong number of type arguments: expected 0, found 1
128 --> $DIR/enum-variant-generic-args.rs:50:18
130 LL | AliasFixed::<()>::TSVariant(());
131 | ^^ unexpected type argument
133 error[E0107]: wrong number of type arguments: expected 0, found 1
134 --> $DIR/enum-variant-generic-args.rs:52:18
136 LL | AliasFixed::<()>::TSVariant::<()>(());
137 | ^^ unexpected type argument
139 error[E0109]: type arguments are not allowed on this entity
140 --> $DIR/enum-variant-generic-args.rs:52:35
142 LL | AliasFixed::<()>::TSVariant::<()>(());
143 | ^^ type argument not allowed
145 error[E0109]: type arguments are not allowed on this entity
146 --> $DIR/enum-variant-generic-args.rs:58:28
148 LL | Enum::<()>::SVariant::<()> { v: () };
149 | ^^ type argument not allowed
151 error[E0109]: type arguments are not allowed on this entity
152 --> $DIR/enum-variant-generic-args.rs:61:23
154 LL | Alias::SVariant::<()> { v: () };
155 | ^^ type argument not allowed
157 error[E0109]: type arguments are not allowed on this entity
158 --> $DIR/enum-variant-generic-args.rs:63:29
160 LL | Alias::<()>::SVariant::<()> { v: () };
161 | ^^ type argument not allowed
163 error[E0109]: type arguments are not allowed on this entity
164 --> $DIR/enum-variant-generic-args.rs:66:28
166 LL | AliasFixed::SVariant::<()> { v: () };
167 | ^^ type argument not allowed
169 error[E0107]: wrong number of type arguments: expected 0, found 1
170 --> $DIR/enum-variant-generic-args.rs:68:18
172 LL | AliasFixed::<()>::SVariant { v: () };
173 | ^^ unexpected type argument
175 error[E0107]: wrong number of type arguments: expected 0, found 1
176 --> $DIR/enum-variant-generic-args.rs:70:18
178 LL | AliasFixed::<()>::SVariant::<()> { v: () };
179 | ^^ unexpected type argument
181 error[E0109]: type arguments are not allowed on this entity
182 --> $DIR/enum-variant-generic-args.rs:70:34
184 LL | AliasFixed::<()>::SVariant::<()> { v: () };
185 | ^^ type argument not allowed
187 error: aborting due to 28 previous errors
189 Some errors occurred: E0107, E0109, E0308.
190 For more information about an error, try `rustc --explain E0107`.