1 error: expected identifier, found `$`
2 --> $DIR/syntax-errors.rs:17:33
4 LL | ( $( $i:ident ),* ) => { ${ count($i) } };
5 | ^^^^^ - help: try removing `$`
7 error: expected identifier, found `$`
8 --> $DIR/syntax-errors.rs:23:26
10 LL | ( $i:ident ) => { ${ count($i) } };
11 | ^^^^^ - help: try removing `$`
13 error: unexpected token: $
14 --> $DIR/syntax-errors.rs:53:8
16 LL | ( $$ $a:ident ) => {
19 note: `$$` and meta-variable expressions are not allowed inside macro parameter definitions
20 --> $DIR/syntax-errors.rs:53:8
22 LL | ( $$ $a:ident ) => {
25 error: unexpected token: a
26 --> $DIR/syntax-errors.rs:60:19
31 note: meta-variable expression must not have trailing tokens
32 --> $DIR/syntax-errors.rs:60:19
37 error: unexpected token: a
38 --> $DIR/syntax-errors.rs:63:19
40 LL | ${count(i a b c)}
43 note: meta-variable expression must not have trailing tokens
44 --> $DIR/syntax-errors.rs:63:19
46 LL | ${count(i a b c)}
49 error: unexpected token: a
50 --> $DIR/syntax-errors.rs:65:22
52 LL | ${count(i, 1 a b c)}
55 note: meta-variable expression must not have trailing tokens
56 --> $DIR/syntax-errors.rs:65:22
58 LL | ${count(i, 1 a b c)}
61 error: unexpected token: a
62 --> $DIR/syntax-errors.rs:67:20
64 LL | ${count(i) a b c}
67 note: meta-variable expression must not have trailing tokens
68 --> $DIR/syntax-errors.rs:67:20
70 LL | ${count(i) a b c}
73 error: unexpected token: a
74 --> $DIR/syntax-errors.rs:70:21
76 LL | ${ignore(i) a b c}
79 note: meta-variable expression must not have trailing tokens
80 --> $DIR/syntax-errors.rs:70:21
82 LL | ${ignore(i) a b c}
85 error: unexpected token: a
86 --> $DIR/syntax-errors.rs:72:20
88 LL | ${ignore(i a b c)}
91 note: meta-variable expression must not have trailing tokens
92 --> $DIR/syntax-errors.rs:72:20
94 LL | ${ignore(i a b c)}
97 error: unexpected token: a
98 --> $DIR/syntax-errors.rs:75:19
100 LL | ${index() a b c}
103 note: meta-variable expression must not have trailing tokens
104 --> $DIR/syntax-errors.rs:75:19
106 LL | ${index() a b c}
109 error: unexpected token: a
110 --> $DIR/syntax-errors.rs:77:19
112 LL | ${index(1 a b c)}
115 note: meta-variable expression must not have trailing tokens
116 --> $DIR/syntax-errors.rs:77:19
118 LL | ${index(1 a b c)}
121 error: unexpected token: a
122 --> $DIR/syntax-errors.rs:80:19
124 LL | ${index() a b c}
127 note: meta-variable expression must not have trailing tokens
128 --> $DIR/syntax-errors.rs:80:19
130 LL | ${index() a b c}
133 error: unexpected token: a
134 --> $DIR/syntax-errors.rs:82:19
136 LL | ${index(1 a b c)}
139 note: meta-variable expression must not have trailing tokens
140 --> $DIR/syntax-errors.rs:82:19
142 LL | ${index(1 a b c)}
145 error: meta-variable expression depth must be a literal
146 --> $DIR/syntax-errors.rs:89:33
148 LL | ( $( $i:ident ),* ) => { ${ index(IDX) } };
151 error: unexpected token: {
152 --> $DIR/syntax-errors.rs:95:8
154 LL | ( ${ length() } ) => {
157 note: `$$` and meta-variable expressions are not allowed inside macro parameter definitions
158 --> $DIR/syntax-errors.rs:95:8
160 LL | ( ${ length() } ) => {
163 error: expected one of: `*`, `+`, or `?`
164 --> $DIR/syntax-errors.rs:95:8
166 LL | ( ${ length() } ) => {
169 error: expected identifier
170 --> $DIR/syntax-errors.rs:102:33
172 LL | ( $( $i:ident ),* ) => { ${ ignore() } };
175 error: only unsuffixes integer literals are supported in meta-variable expressions
176 --> $DIR/syntax-errors.rs:108:33
178 LL | ( $( $i:ident ),* ) => { ${ index(1u32) } };
181 error: meta-variable expression parameter must be wrapped in parentheses
182 --> $DIR/syntax-errors.rs:114:33
184 LL | ( $( $i:ident ),* ) => { ${ count{i} } };
187 error: expected identifier
188 --> $DIR/syntax-errors.rs:120:31
190 LL | ( $( $i:ident ),* ) => { ${ {} } };
193 error: unrecognized meta-variable expression
194 --> $DIR/syntax-errors.rs:140:33
196 LL | ( $( $i:ident ),* ) => { ${ aaaaaaaaaaaaaa(i) } };
197 | ^^^^^^^^^^^^^^ help: supported expressions are count, ignore, index and length
199 error: `count` can not be placed inside the inner-most repetition
200 --> $DIR/syntax-errors.rs:12:24
202 LL | ( $i:ident ) => { ${ count(i) } };
205 error: expected expression, found `$`
206 --> $DIR/syntax-errors.rs:17:30
208 LL | ( $( $i:ident ),* ) => { ${ count($i) } };
209 | ^ expected expression
211 LL | curly__rhs_dollar__round!(a, b, c);
212 | ---------------------------------- in this macro invocation
214 = note: this error originates in the macro `curly__rhs_dollar__round` (in Nightly builds, run with -Z macro-backtrace for more info)
216 error: expected expression, found `$`
217 --> $DIR/syntax-errors.rs:23:23
219 LL | ( $i:ident ) => { ${ count($i) } };
220 | ^ expected expression
222 LL | curly__rhs_dollar__no_round!(a);
223 | ------------------------------- in this macro invocation
225 = note: this error originates in the macro `curly__rhs_dollar__no_round` (in Nightly builds, run with -Z macro-backtrace for more info)
227 error: variable 'i' is still repeating at this depth
228 --> $DIR/syntax-errors.rs:41:36
230 LL | ( $( $i:ident ),* ) => { count($i) };
233 error: expected expression, found `$`
234 --> $DIR/syntax-errors.rs:60:9
236 LL | ${count() a b c}
237 | ^ expected expression
239 LL | extra_garbage_after_metavar!(a);
240 | ------------------------------- in this macro invocation
242 = note: this error originates in the macro `extra_garbage_after_metavar` (in Nightly builds, run with -Z macro-backtrace for more info)
244 error: expected expression, found `$`
245 --> $DIR/syntax-errors.rs:89:30
247 LL | ( $( $i:ident ),* ) => { ${ index(IDX) } };
248 | ^ expected expression
250 LL | metavar_depth_is_not_literal!(a);
251 | -------------------------------- in this macro invocation
253 = note: this error originates in the macro `metavar_depth_is_not_literal` (in Nightly builds, run with -Z macro-backtrace for more info)
255 error: expected expression, found `$`
256 --> $DIR/syntax-errors.rs:102:30
258 LL | ( $( $i:ident ),* ) => { ${ ignore() } };
259 | ^ expected expression
261 LL | metavar_token_without_ident!(a);
262 | ------------------------------- in this macro invocation
264 = note: this error originates in the macro `metavar_token_without_ident` (in Nightly builds, run with -Z macro-backtrace for more info)
266 error: expected expression, found `$`
267 --> $DIR/syntax-errors.rs:108:30
269 LL | ( $( $i:ident ),* ) => { ${ index(1u32) } };
270 | ^ expected expression
272 LL | metavar_with_literal_suffix!(a);
273 | ------------------------------- in this macro invocation
275 = note: this error originates in the macro `metavar_with_literal_suffix` (in Nightly builds, run with -Z macro-backtrace for more info)
277 error: expected expression, found `$`
278 --> $DIR/syntax-errors.rs:114:30
280 LL | ( $( $i:ident ),* ) => { ${ count{i} } };
281 | ^ expected expression
283 LL | metavar_without_parens!(a);
284 | -------------------------- in this macro invocation
286 = note: this error originates in the macro `metavar_without_parens` (in Nightly builds, run with -Z macro-backtrace for more info)
288 error: expected expression, found `$`
289 --> $DIR/syntax-errors.rs:120:30
291 LL | ( $( $i:ident ),* ) => { ${ {} } };
292 | ^ expected expression
294 LL | open_brackets_without_tokens!(a);
295 | -------------------------------- in this macro invocation
297 = note: this error originates in the macro `open_brackets_without_tokens` (in Nightly builds, run with -Z macro-backtrace for more info)
299 error: variable `foo` is not recognized in meta-variable expression
300 --> $DIR/syntax-errors.rs:127:17
305 error: variable `bar` is not recognized in meta-variable expression
306 --> $DIR/syntax-errors.rs:134:18
311 error: expected expression, found `$`
312 --> $DIR/syntax-errors.rs:140:30
314 LL | ( $( $i:ident ),* ) => { ${ aaaaaaaaaaaaaa(i) } };
315 | ^ expected expression
317 LL | unknown_metavar!(a);
318 | ------------------- in this macro invocation
320 = note: this error originates in the macro `unknown_metavar` (in Nightly builds, run with -Z macro-backtrace for more info)
322 error[E0425]: cannot find value `i` in this scope
323 --> $DIR/syntax-errors.rs:29:36
325 LL | ( $( $i:ident ),* ) => { count(i) };
326 | ^ not found in this scope
328 LL | no_curly__no_rhs_dollar__round!(a, b, c);
329 | ---------------------------------------- in this macro invocation
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)
333 error[E0425]: cannot find value `i` in this scope
334 --> $DIR/syntax-errors.rs:35:29
336 LL | ( $i:ident ) => { count(i) };
337 | ^ not found in this scope
339 LL | no_curly__no_rhs_dollar__no_round!(a);
340 | ------------------------------------- in this macro invocation
342 = 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)
344 error[E0425]: cannot find value `a` in this scope
345 --> $DIR/syntax-errors.rs:153:37
347 LL | no_curly__rhs_dollar__no_round!(a);
348 | ^ not found in this scope
350 error[E0425]: cannot find function `count` in this scope
351 --> $DIR/syntax-errors.rs:29:30
353 LL | ( $( $i:ident ),* ) => { count(i) };
354 | ^^^^^ not found in this scope
356 LL | no_curly__no_rhs_dollar__round!(a, b, c);
357 | ---------------------------------------- in this macro invocation
359 = note: this error originates in the macro `no_curly__no_rhs_dollar__round` (in Nightly builds, run with -Z macro-backtrace for more info)
361 error[E0425]: cannot find function `count` in this scope
362 --> $DIR/syntax-errors.rs:35:23
364 LL | ( $i:ident ) => { count(i) };
365 | ^^^^^ not found in this scope
367 LL | no_curly__no_rhs_dollar__no_round!(a);
368 | ------------------------------------- in this macro invocation
370 = 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)
372 error[E0425]: cannot find function `count` in this scope
373 --> $DIR/syntax-errors.rs:46:23
375 LL | ( $i:ident ) => { count($i) };
376 | ^^^^^ not found in this scope
378 LL | no_curly__rhs_dollar__no_round!(a);
379 | ---------------------------------- in this macro invocation
381 = note: this error originates in the macro `no_curly__rhs_dollar__no_round` (in Nightly builds, run with -Z macro-backtrace for more info)
383 error: aborting due to 40 previous errors
385 For more information about this error, try `rustc --explain E0425`.