]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | error: expected identifier, found `$` |
2 | --> $DIR/syntax-errors.rs:17:33 | |
3 | | | |
4 | LL | ( $( $i:ident ),* ) => { ${ count($i) } }; | |
5 | | ^^^^^ - help: try removing `$` | |
6 | ||
7 | error: expected identifier, found `$` | |
8 | --> $DIR/syntax-errors.rs:23:26 | |
9 | | | |
10 | LL | ( $i:ident ) => { ${ count($i) } }; | |
11 | | ^^^^^ - help: try removing `$` | |
12 | ||
13 | error: unexpected token: $ | |
14 | --> $DIR/syntax-errors.rs:53:8 | |
15 | | | |
16 | LL | ( $$ $a:ident ) => { | |
17 | | ^ | |
18 | ||
19 | note: `$$` and meta-variable expressions are not allowed inside macro parameter definitions | |
20 | --> $DIR/syntax-errors.rs:53:8 | |
21 | | | |
22 | LL | ( $$ $a:ident ) => { | |
23 | | ^ | |
24 | ||
25 | error: unexpected token: a | |
26 | --> $DIR/syntax-errors.rs:60:19 | |
27 | | | |
28 | LL | ${count() a b c} | |
29 | | ^ | |
30 | | | |
31 | note: meta-variable expression must not have trailing tokens | |
32 | --> $DIR/syntax-errors.rs:60:19 | |
33 | | | |
34 | LL | ${count() a b c} | |
35 | | ^ | |
36 | ||
37 | error: unexpected token: a | |
38 | --> $DIR/syntax-errors.rs:63:19 | |
39 | | | |
40 | LL | ${count(i a b c)} | |
41 | | ^ | |
42 | | | |
43 | note: meta-variable expression must not have trailing tokens | |
44 | --> $DIR/syntax-errors.rs:63:19 | |
45 | | | |
46 | LL | ${count(i a b c)} | |
47 | | ^ | |
48 | ||
49 | error: unexpected token: a | |
50 | --> $DIR/syntax-errors.rs:65:22 | |
51 | | | |
52 | LL | ${count(i, 1 a b c)} | |
53 | | ^ | |
54 | | | |
55 | note: meta-variable expression must not have trailing tokens | |
56 | --> $DIR/syntax-errors.rs:65:22 | |
57 | | | |
58 | LL | ${count(i, 1 a b c)} | |
59 | | ^ | |
60 | ||
61 | error: unexpected token: a | |
62 | --> $DIR/syntax-errors.rs:67:20 | |
63 | | | |
64 | LL | ${count(i) a b c} | |
65 | | ^ | |
66 | | | |
67 | note: meta-variable expression must not have trailing tokens | |
68 | --> $DIR/syntax-errors.rs:67:20 | |
69 | | | |
70 | LL | ${count(i) a b c} | |
71 | | ^ | |
72 | ||
73 | error: unexpected token: a | |
74 | --> $DIR/syntax-errors.rs:70:21 | |
75 | | | |
76 | LL | ${ignore(i) a b c} | |
77 | | ^ | |
78 | | | |
79 | note: meta-variable expression must not have trailing tokens | |
80 | --> $DIR/syntax-errors.rs:70:21 | |
81 | | | |
82 | LL | ${ignore(i) a b c} | |
83 | | ^ | |
84 | ||
85 | error: unexpected token: a | |
86 | --> $DIR/syntax-errors.rs:72:20 | |
87 | | | |
88 | LL | ${ignore(i a b c)} | |
89 | | ^ | |
90 | | | |
91 | note: meta-variable expression must not have trailing tokens | |
92 | --> $DIR/syntax-errors.rs:72:20 | |
93 | | | |
94 | LL | ${ignore(i a b c)} | |
95 | | ^ | |
96 | ||
97 | error: unexpected token: a | |
98 | --> $DIR/syntax-errors.rs:75:19 | |
99 | | | |
100 | LL | ${index() a b c} | |
101 | | ^ | |
102 | | | |
103 | note: meta-variable expression must not have trailing tokens | |
104 | --> $DIR/syntax-errors.rs:75:19 | |
105 | | | |
106 | LL | ${index() a b c} | |
107 | | ^ | |
108 | ||
109 | error: unexpected token: a | |
110 | --> $DIR/syntax-errors.rs:77:19 | |
111 | | | |
112 | LL | ${index(1 a b c)} | |
113 | | ^ | |
114 | | | |
115 | note: meta-variable expression must not have trailing tokens | |
116 | --> $DIR/syntax-errors.rs:77:19 | |
117 | | | |
118 | LL | ${index(1 a b c)} | |
119 | | ^ | |
120 | ||
121 | error: unexpected token: a | |
122 | --> $DIR/syntax-errors.rs:80:19 | |
123 | | | |
124 | LL | ${index() a b c} | |
125 | | ^ | |
126 | | | |
127 | note: meta-variable expression must not have trailing tokens | |
128 | --> $DIR/syntax-errors.rs:80:19 | |
129 | | | |
130 | LL | ${index() a b c} | |
131 | | ^ | |
132 | ||
133 | error: unexpected token: a | |
134 | --> $DIR/syntax-errors.rs:82:19 | |
135 | | | |
136 | LL | ${index(1 a b c)} | |
137 | | ^ | |
138 | | | |
139 | note: meta-variable expression must not have trailing tokens | |
140 | --> $DIR/syntax-errors.rs:82:19 | |
141 | | | |
142 | LL | ${index(1 a b c)} | |
143 | | ^ | |
144 | ||
145 | error: meta-variable expression depth must be a literal | |
146 | --> $DIR/syntax-errors.rs:89:33 | |
147 | | | |
148 | LL | ( $( $i:ident ),* ) => { ${ index(IDX) } }; | |
149 | | ^^^^^ | |
150 | ||
151 | error: unexpected token: { | |
152 | --> $DIR/syntax-errors.rs:95:8 | |
153 | | | |
154 | LL | ( ${ length() } ) => { | |
155 | | ^^^^^^^^^^^^ | |
156 | ||
157 | note: `$$` and meta-variable expressions are not allowed inside macro parameter definitions | |
158 | --> $DIR/syntax-errors.rs:95:8 | |
159 | | | |
160 | LL | ( ${ length() } ) => { | |
161 | | ^^^^^^^^^^^^ | |
162 | ||
163 | error: expected one of: `*`, `+`, or `?` | |
164 | --> $DIR/syntax-errors.rs:95:8 | |
165 | | | |
166 | LL | ( ${ length() } ) => { | |
167 | | ^^^^^^^^^^^^ | |
168 | ||
169 | error: expected identifier | |
170 | --> $DIR/syntax-errors.rs:102:33 | |
171 | | | |
172 | LL | ( $( $i:ident ),* ) => { ${ ignore() } }; | |
173 | | ^^^^^^ | |
174 | ||
175 | error: only unsuffixes integer literals are supported in meta-variable expressions | |
176 | --> $DIR/syntax-errors.rs:108:33 | |
177 | | | |
178 | LL | ( $( $i:ident ),* ) => { ${ index(1u32) } }; | |
179 | | ^^^^^ | |
180 | ||
181 | error: meta-variable expression parameter must be wrapped in parentheses | |
182 | --> $DIR/syntax-errors.rs:114:33 | |
183 | | | |
184 | LL | ( $( $i:ident ),* ) => { ${ count{i} } }; | |
185 | | ^^^^^ | |
186 | ||
187 | error: expected identifier | |
188 | --> $DIR/syntax-errors.rs:120:31 | |
189 | | | |
190 | LL | ( $( $i:ident ),* ) => { ${ {} } }; | |
191 | | ^^^^^^ | |
192 | ||
193 | error: unrecognized meta-variable expression | |
194 | --> $DIR/syntax-errors.rs:140:33 | |
195 | | | |
196 | LL | ( $( $i:ident ),* ) => { ${ aaaaaaaaaaaaaa(i) } }; | |
197 | | ^^^^^^^^^^^^^^ help: supported expressions are count, ignore, index and length | |
198 | ||
199 | error: `count` can not be placed inside the inner-most repetition | |
200 | --> $DIR/syntax-errors.rs:12:24 | |
201 | | | |
202 | LL | ( $i:ident ) => { ${ count(i) } }; | |
203 | | ^^^^^^^^^^^^ | |
204 | ||
205 | error: expected expression, found `$` | |
206 | --> $DIR/syntax-errors.rs:17:30 | |
207 | | | |
208 | LL | ( $( $i:ident ),* ) => { ${ count($i) } }; | |
209 | | ^ expected expression | |
210 | ... | |
211 | LL | curly__rhs_dollar__round!(a, b, c); | |
212 | | ---------------------------------- in this macro invocation | |
213 | | | |
214 | = note: this error originates in the macro `curly__rhs_dollar__round` (in Nightly builds, run with -Z macro-backtrace for more info) | |
215 | ||
216 | error: expected expression, found `$` | |
217 | --> $DIR/syntax-errors.rs:23:23 | |
218 | | | |
219 | LL | ( $i:ident ) => { ${ count($i) } }; | |
220 | | ^ expected expression | |
221 | ... | |
222 | LL | curly__rhs_dollar__no_round!(a); | |
223 | | ------------------------------- in this macro invocation | |
224 | | | |
225 | = note: this error originates in the macro `curly__rhs_dollar__no_round` (in Nightly builds, run with -Z macro-backtrace for more info) | |
226 | ||
227 | error: variable 'i' is still repeating at this depth | |
228 | --> $DIR/syntax-errors.rs:41:36 | |
229 | | | |
230 | LL | ( $( $i:ident ),* ) => { count($i) }; | |
231 | | ^^ | |
232 | ||
233 | error: expected expression, found `$` | |
234 | --> $DIR/syntax-errors.rs:60:9 | |
235 | | | |
236 | LL | ${count() a b c} | |
237 | | ^ expected expression | |
238 | ... | |
239 | LL | extra_garbage_after_metavar!(a); | |
240 | | ------------------------------- in this macro invocation | |
241 | | | |
242 | = note: this error originates in the macro `extra_garbage_after_metavar` (in Nightly builds, run with -Z macro-backtrace for more info) | |
243 | ||
244 | error: expected expression, found `$` | |
245 | --> $DIR/syntax-errors.rs:89:30 | |
246 | | | |
247 | LL | ( $( $i:ident ),* ) => { ${ index(IDX) } }; | |
248 | | ^ expected expression | |
249 | ... | |
250 | LL | metavar_depth_is_not_literal!(a); | |
251 | | -------------------------------- in this macro invocation | |
252 | | | |
253 | = note: this error originates in the macro `metavar_depth_is_not_literal` (in Nightly builds, run with -Z macro-backtrace for more info) | |
254 | ||
255 | error: expected expression, found `$` | |
256 | --> $DIR/syntax-errors.rs:102:30 | |
257 | | | |
258 | LL | ( $( $i:ident ),* ) => { ${ ignore() } }; | |
259 | | ^ expected expression | |
260 | ... | |
261 | LL | metavar_token_without_ident!(a); | |
262 | | ------------------------------- in this macro invocation | |
263 | | | |
264 | = note: this error originates in the macro `metavar_token_without_ident` (in Nightly builds, run with -Z macro-backtrace for more info) | |
265 | ||
266 | error: expected expression, found `$` | |
267 | --> $DIR/syntax-errors.rs:108:30 | |
268 | | | |
269 | LL | ( $( $i:ident ),* ) => { ${ index(1u32) } }; | |
270 | | ^ expected expression | |
271 | ... | |
272 | LL | metavar_with_literal_suffix!(a); | |
273 | | ------------------------------- in this macro invocation | |
274 | | | |
275 | = note: this error originates in the macro `metavar_with_literal_suffix` (in Nightly builds, run with -Z macro-backtrace for more info) | |
276 | ||
277 | error: expected expression, found `$` | |
278 | --> $DIR/syntax-errors.rs:114:30 | |
279 | | | |
280 | LL | ( $( $i:ident ),* ) => { ${ count{i} } }; | |
281 | | ^ expected expression | |
282 | ... | |
283 | LL | metavar_without_parens!(a); | |
284 | | -------------------------- in this macro invocation | |
285 | | | |
286 | = note: this error originates in the macro `metavar_without_parens` (in Nightly builds, run with -Z macro-backtrace for more info) | |
287 | ||
288 | error: expected expression, found `$` | |
289 | --> $DIR/syntax-errors.rs:120:30 | |
290 | | | |
291 | LL | ( $( $i:ident ),* ) => { ${ {} } }; | |
292 | | ^ expected expression | |
293 | ... | |
294 | LL | open_brackets_without_tokens!(a); | |
295 | | -------------------------------- in this macro invocation | |
296 | | | |
297 | = note: this error originates in the macro `open_brackets_without_tokens` (in Nightly builds, run with -Z macro-backtrace for more info) | |
298 | ||
299 | error: variable `foo` is not recognized in meta-variable expression | |
300 | --> $DIR/syntax-errors.rs:127:17 | |
301 | | | |
302 | LL | ${count(foo)} | |
303 | | ^^^ | |
304 | ||
305 | error: variable `bar` is not recognized in meta-variable expression | |
306 | --> $DIR/syntax-errors.rs:134:18 | |
307 | | | |
308 | LL | ${ignore(bar)} | |
309 | | ^^^ | |
310 | ||
311 | error: expected expression, found `$` | |
312 | --> $DIR/syntax-errors.rs:140:30 | |
313 | | | |
314 | LL | ( $( $i:ident ),* ) => { ${ aaaaaaaaaaaaaa(i) } }; | |
315 | | ^ expected expression | |
316 | ... | |
317 | LL | unknown_metavar!(a); | |
318 | | ------------------- in this macro invocation | |
319 | | | |
320 | = note: this error originates in the macro `unknown_metavar` (in Nightly builds, run with -Z macro-backtrace for more info) | |
321 | ||
322 | error[E0425]: cannot find function `count` in this scope | |
323 | --> $DIR/syntax-errors.rs:29:30 | |
324 | | | |
325 | LL | ( $( $i:ident ),* ) => { count(i) }; | |
326 | | ^^^^^ not found in this scope | |
327 | ... | |
328 | LL | no_curly__no_rhs_dollar__round!(a, b, c); | |
329 | | ---------------------------------------- in this macro invocation | |
330 | | | |
331 | = note: this error originates in the macro `no_curly__no_rhs_dollar__round` (in Nightly builds, run with -Z macro-backtrace for more info) | |
332 | ||
333 | error[E0425]: cannot find value `i` in this scope | |
334 | --> $DIR/syntax-errors.rs:29:36 | |
335 | | | |
336 | LL | ( $( $i:ident ),* ) => { count(i) }; | |
337 | | ^ not found in this scope | |
338 | ... | |
339 | LL | no_curly__no_rhs_dollar__round!(a, b, c); | |
340 | | ---------------------------------------- in this macro invocation | |
341 | | | |
342 | = note: this error originates in the macro `no_curly__no_rhs_dollar__round` (in Nightly builds, run with -Z macro-backtrace for more info) | |
343 | ||
344 | error[E0425]: cannot find function `count` in this scope | |
345 | --> $DIR/syntax-errors.rs:35:23 | |
346 | | | |
347 | LL | ( $i:ident ) => { count(i) }; | |
348 | | ^^^^^ not found in this scope | |
349 | ... | |
350 | LL | no_curly__no_rhs_dollar__no_round!(a); | |
351 | | ------------------------------------- in this macro invocation | |
352 | | | |
353 | = note: this error originates in the macro `no_curly__no_rhs_dollar__no_round` (in Nightly builds, run with -Z macro-backtrace for more info) | |
354 | ||
355 | error[E0425]: cannot find value `i` in this scope | |
356 | --> $DIR/syntax-errors.rs:35:29 | |
357 | | | |
358 | LL | ( $i:ident ) => { count(i) }; | |
359 | | ^ not found in this scope | |
360 | ... | |
361 | LL | no_curly__no_rhs_dollar__no_round!(a); | |
362 | | ------------------------------------- in this macro invocation | |
363 | | | |
364 | = note: this error originates in the macro `no_curly__no_rhs_dollar__no_round` (in Nightly builds, run with -Z macro-backtrace for more info) | |
365 | ||
366 | error[E0425]: cannot find function `count` in this scope | |
367 | --> $DIR/syntax-errors.rs:46:23 | |
368 | | | |
369 | LL | ( $i:ident ) => { count($i) }; | |
370 | | ^^^^^ not found in this scope | |
371 | ... | |
372 | LL | no_curly__rhs_dollar__no_round!(a); | |
373 | | ---------------------------------- in this macro invocation | |
374 | | | |
375 | = note: this error originates in the macro `no_curly__rhs_dollar__no_round` (in Nightly builds, run with -Z macro-backtrace for more info) | |
376 | ||
377 | error[E0425]: cannot find value `a` in this scope | |
378 | --> $DIR/syntax-errors.rs:153:37 | |
379 | | | |
380 | LL | no_curly__rhs_dollar__no_round!(a); | |
381 | | ^ not found in this scope | |
382 | ||
383 | error: aborting due to 40 previous errors | |
384 | ||
385 | For more information about this error, try `rustc --explain E0425`. |