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
+
1
10
error[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
3
12
|
4
13
LL | Self::TSVariant::<()>(());
5
14
| ^^ type argument not allowed
6
15
7
16
error[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
9
18
|
10
19
LL | Self::<()>::TSVariant(());
11
20
| ^^ type argument not allowed
12
21
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
+
13
31
error[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
15
33
|
16
34
LL | Self::<()>::TSVariant::<()>(());
17
35
| ^^ type argument not allowed
18
36
19
37
error[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
21
39
|
22
40
LL | Self::<()>::TSVariant::<()>(());
23
41
| ^^ type argument not allowed
24
42
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
+
25
52
error[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
27
54
|
28
55
LL | Self::SVariant::<()> { v: () };
29
56
| ^^ type argument not allowed
30
57
31
58
error[E0308]: mismatched types
32
- --> $DIR/enum-variant-generic-args.rs:19 :35
59
+ --> $DIR/enum-variant-generic-args.rs:24 :35
33
60
|
34
61
LL | Self::SVariant::<()> { v: () };
35
62
| ^^ expected type parameter, found ()
@@ -38,13 +65,13 @@ LL | Self::SVariant::<()> { v: () };
38
65
found type `()`
39
66
40
67
error[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
42
69
|
43
70
LL | Self::<()>::SVariant { v: () };
44
71
| ^^ type argument not allowed
45
72
46
73
error[E0308]: mismatched types
47
- --> $DIR/enum-variant-generic-args.rs:22 :35
74
+ --> $DIR/enum-variant-generic-args.rs:27 :35
48
75
|
49
76
LL | Self::<()>::SVariant { v: () };
50
77
| ^^ expected type parameter, found ()
@@ -53,19 +80,19 @@ LL | Self::<()>::SVariant { v: () };
53
80
found type `()`
54
81
55
82
error[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
57
84
|
58
85
LL | Self::<()>::SVariant::<()> { v: () };
59
86
| ^^ type argument not allowed
60
87
61
88
error[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
63
90
|
64
91
LL | Self::<()>::SVariant::<()> { v: () };
65
92
| ^^ type argument not allowed
66
93
67
94
error[E0308]: mismatched types
68
- --> $DIR/enum-variant-generic-args.rs:25 :41
95
+ --> $DIR/enum-variant-generic-args.rs:30 :41
69
96
|
70
97
LL | Self::<()>::SVariant::<()> { v: () };
71
98
| ^^ expected type parameter, found ()
@@ -74,90 +101,90 @@ LL | Self::<()>::SVariant::<()> { v: () };
74
101
found type `()`
75
102
76
103
error[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
78
105
|
79
106
LL | Enum::<()>::TSVariant::<()>(());
80
107
| ^^ type argument not allowed
81
108
82
109
error[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
84
111
|
85
112
LL | Alias::TSVariant::<()>(());
86
113
| ^^ type argument not allowed
87
114
88
115
error[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
90
117
|
91
118
LL | Alias::<()>::TSVariant::<()>(());
92
119
| ^^ type argument not allowed
93
120
94
121
error[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
96
123
|
97
124
LL | AliasFixed::TSVariant::<()>(());
98
125
| ^^ type argument not allowed
99
126
100
127
error[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
102
129
|
103
130
LL | AliasFixed::<()>::TSVariant(());
104
131
| ^^ unexpected type argument
105
132
106
133
error[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
108
135
|
109
136
LL | AliasFixed::<()>::TSVariant::<()>(());
110
137
| ^^ unexpected type argument
111
138
112
139
error[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
114
141
|
115
142
LL | AliasFixed::<()>::TSVariant::<()>(());
116
143
| ^^ type argument not allowed
117
144
118
145
error[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
120
147
|
121
148
LL | Enum::<()>::SVariant::<()> { v: () };
122
149
| ^^ type argument not allowed
123
150
124
151
error[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
126
153
|
127
154
LL | Alias::SVariant::<()> { v: () };
128
155
| ^^ type argument not allowed
129
156
130
157
error[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
132
159
|
133
160
LL | Alias::<()>::SVariant::<()> { v: () };
134
161
| ^^ type argument not allowed
135
162
136
163
error[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
138
165
|
139
166
LL | AliasFixed::SVariant::<()> { v: () };
140
167
| ^^ type argument not allowed
141
168
142
169
error[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
144
171
|
145
172
LL | AliasFixed::<()>::SVariant { v: () };
146
173
| ^^ unexpected type argument
147
174
148
175
error[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
150
177
|
151
178
LL | AliasFixed::<()>::SVariant::<()> { v: () };
152
179
| ^^ unexpected type argument
153
180
154
181
error[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
156
183
|
157
184
LL | AliasFixed::<()>::SVariant::<()> { v: () };
158
185
| ^^ type argument not allowed
159
186
160
- error: aborting due to 25 previous errors
187
+ error: aborting due to 28 previous errors
161
188
162
189
Some errors occurred: E0107, E0109, E0308.
163
190
For more information about an error, try `rustc --explain E0107`.
0 commit comments