1+ error[E0308]: mismatched types
2+ --> $DIR/enum-variant-generic-args.rs:9:25
3+ |
4+ LL | Self::TSVariant(());
5+ | ^^ expected type parameter, found ()
6+ |
7+ = note: expected type `T`
8+ found type `()`
9+
110error[E0109]: type arguments are not allowed on this entity
2- --> $DIR/enum-variant-generic-args.rs:9 :27
11+ --> $DIR/enum-variant-generic-args.rs:11 :27
312 |
413LL | Self::TSVariant::<()>(());
514 | ^^ type argument not allowed
615
716error[E0109]: type arguments are not allowed on this entity
8- --> $DIR/enum-variant-generic-args.rs:11 :16
17+ --> $DIR/enum-variant-generic-args.rs:13 :16
918 |
1019LL | Self::<()>::TSVariant(());
1120 | ^^ type argument not allowed
1221
22+ error[E0308]: mismatched types
23+ --> $DIR/enum-variant-generic-args.rs:13:31
24+ |
25+ LL | Self::<()>::TSVariant(());
26+ | ^^ expected type parameter, found ()
27+ |
28+ = note: expected type `T`
29+ found type `()`
30+
1331error[E0109]: type arguments are not allowed on this entity
14- --> $DIR/enum-variant-generic-args.rs:13 :16
32+ --> $DIR/enum-variant-generic-args.rs:16 :16
1533 |
1634LL | Self::<()>::TSVariant::<()>(());
1735 | ^^ type argument not allowed
1836
1937error[E0109]: type arguments are not allowed on this entity
20- --> $DIR/enum-variant-generic-args.rs:13 :33
38+ --> $DIR/enum-variant-generic-args.rs:16 :33
2139 |
2240LL | Self::<()>::TSVariant::<()>(());
2341 | ^^ type argument not allowed
2442
43+ error[E0308]: mismatched types
44+ --> $DIR/enum-variant-generic-args.rs:22:29
45+ |
46+ LL | Self::SVariant { v: () };
47+ | ^^ expected type parameter, found ()
48+ |
49+ = note: expected type `T`
50+ found type `()`
51+
2552error[E0109]: type arguments are not allowed on this entity
26- --> $DIR/enum-variant-generic-args.rs:19 :26
53+ --> $DIR/enum-variant-generic-args.rs:24 :26
2754 |
2855LL | Self::SVariant::<()> { v: () };
2956 | ^^ type argument not allowed
3057
3158error[E0308]: mismatched types
32- --> $DIR/enum-variant-generic-args.rs:19 :35
59+ --> $DIR/enum-variant-generic-args.rs:24 :35
3360 |
3461LL | Self::SVariant::<()> { v: () };
3562 | ^^ expected type parameter, found ()
@@ -38,13 +65,13 @@ LL | Self::SVariant::<()> { v: () };
3865 found type `()`
3966
4067error[E0109]: type arguments are not allowed on this entity
41- --> $DIR/enum-variant-generic-args.rs:22 :16
68+ --> $DIR/enum-variant-generic-args.rs:27 :16
4269 |
4370LL | Self::<()>::SVariant { v: () };
4471 | ^^ type argument not allowed
4572
4673error[E0308]: mismatched types
47- --> $DIR/enum-variant-generic-args.rs:22 :35
74+ --> $DIR/enum-variant-generic-args.rs:27 :35
4875 |
4976LL | Self::<()>::SVariant { v: () };
5077 | ^^ expected type parameter, found ()
@@ -53,19 +80,19 @@ LL | Self::<()>::SVariant { v: () };
5380 found type `()`
5481
5582error[E0109]: type arguments are not allowed on this entity
56- --> $DIR/enum-variant-generic-args.rs:25 :16
83+ --> $DIR/enum-variant-generic-args.rs:30 :16
5784 |
5885LL | Self::<()>::SVariant::<()> { v: () };
5986 | ^^ type argument not allowed
6087
6188error[E0109]: type arguments are not allowed on this entity
62- --> $DIR/enum-variant-generic-args.rs:25 :32
89+ --> $DIR/enum-variant-generic-args.rs:30 :32
6390 |
6491LL | Self::<()>::SVariant::<()> { v: () };
6592 | ^^ type argument not allowed
6693
6794error[E0308]: mismatched types
68- --> $DIR/enum-variant-generic-args.rs:25 :41
95+ --> $DIR/enum-variant-generic-args.rs:30 :41
6996 |
7097LL | Self::<()>::SVariant::<()> { v: () };
7198 | ^^ expected type parameter, found ()
@@ -74,90 +101,90 @@ LL | Self::<()>::SVariant::<()> { v: () };
74101 found type `()`
75102
76103error[E0109]: type arguments are not allowed on this entity
77- --> $DIR/enum-variant-generic-args.rs:35 :29
104+ --> $DIR/enum-variant-generic-args.rs:40 :29
78105 |
79106LL | Enum::<()>::TSVariant::<()>(());
80107 | ^^ type argument not allowed
81108
82109error[E0109]: type arguments are not allowed on this entity
83- --> $DIR/enum-variant-generic-args.rs:38 :24
110+ --> $DIR/enum-variant-generic-args.rs:43 :24
84111 |
85112LL | Alias::TSVariant::<()>(());
86113 | ^^ type argument not allowed
87114
88115error[E0109]: type arguments are not allowed on this entity
89- --> $DIR/enum-variant-generic-args.rs:40 :30
116+ --> $DIR/enum-variant-generic-args.rs:45 :30
90117 |
91118LL | Alias::<()>::TSVariant::<()>(());
92119 | ^^ type argument not allowed
93120
94121error[E0109]: type arguments are not allowed on this entity
95- --> $DIR/enum-variant-generic-args.rs:43 :29
122+ --> $DIR/enum-variant-generic-args.rs:48 :29
96123 |
97124LL | AliasFixed::TSVariant::<()>(());
98125 | ^^ type argument not allowed
99126
100127error[E0107]: wrong number of type arguments: expected 0, found 1
101- --> $DIR/enum-variant-generic-args.rs:45 :18
128+ --> $DIR/enum-variant-generic-args.rs:50 :18
102129 |
103130LL | AliasFixed::<()>::TSVariant(());
104131 | ^^ unexpected type argument
105132
106133error[E0107]: wrong number of type arguments: expected 0, found 1
107- --> $DIR/enum-variant-generic-args.rs:47 :18
134+ --> $DIR/enum-variant-generic-args.rs:52 :18
108135 |
109136LL | AliasFixed::<()>::TSVariant::<()>(());
110137 | ^^ unexpected type argument
111138
112139error[E0109]: type arguments are not allowed on this entity
113- --> $DIR/enum-variant-generic-args.rs:47 :35
140+ --> $DIR/enum-variant-generic-args.rs:52 :35
114141 |
115142LL | AliasFixed::<()>::TSVariant::<()>(());
116143 | ^^ type argument not allowed
117144
118145error[E0109]: type arguments are not allowed on this entity
119- --> $DIR/enum-variant-generic-args.rs:53 :28
146+ --> $DIR/enum-variant-generic-args.rs:58 :28
120147 |
121148LL | Enum::<()>::SVariant::<()> { v: () };
122149 | ^^ type argument not allowed
123150
124151error[E0109]: type arguments are not allowed on this entity
125- --> $DIR/enum-variant-generic-args.rs:56 :23
152+ --> $DIR/enum-variant-generic-args.rs:61 :23
126153 |
127154LL | Alias::SVariant::<()> { v: () };
128155 | ^^ type argument not allowed
129156
130157error[E0109]: type arguments are not allowed on this entity
131- --> $DIR/enum-variant-generic-args.rs:58 :29
158+ --> $DIR/enum-variant-generic-args.rs:63 :29
132159 |
133160LL | Alias::<()>::SVariant::<()> { v: () };
134161 | ^^ type argument not allowed
135162
136163error[E0109]: type arguments are not allowed on this entity
137- --> $DIR/enum-variant-generic-args.rs:61 :28
164+ --> $DIR/enum-variant-generic-args.rs:66 :28
138165 |
139166LL | AliasFixed::SVariant::<()> { v: () };
140167 | ^^ type argument not allowed
141168
142169error[E0107]: wrong number of type arguments: expected 0, found 1
143- --> $DIR/enum-variant-generic-args.rs:63 :18
170+ --> $DIR/enum-variant-generic-args.rs:68 :18
144171 |
145172LL | AliasFixed::<()>::SVariant { v: () };
146173 | ^^ unexpected type argument
147174
148175error[E0107]: wrong number of type arguments: expected 0, found 1
149- --> $DIR/enum-variant-generic-args.rs:65 :18
176+ --> $DIR/enum-variant-generic-args.rs:70 :18
150177 |
151178LL | AliasFixed::<()>::SVariant::<()> { v: () };
152179 | ^^ unexpected type argument
153180
154181error[E0109]: type arguments are not allowed on this entity
155- --> $DIR/enum-variant-generic-args.rs:65 :34
182+ --> $DIR/enum-variant-generic-args.rs:70 :34
156183 |
157184LL | AliasFixed::<()>::SVariant::<()> { v: () };
158185 | ^^ type argument not allowed
159186
160- error: aborting due to 25 previous errors
187+ error: aborting due to 28 previous errors
161188
162189Some errors occurred: E0107, E0109, E0308.
163190For more information about an error, try `rustc --explain E0107`.
0 commit comments