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