fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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