]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/expand-expr.stderr
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / proc-macro / expand-expr.stderr
1 error: expected one of `.`, `?`, or an operator, found `;`
2   --> $DIR/expand-expr.rs:106:27
3    |
4 LL | expand_expr_fail!("string"; hello);
5    |                           ^ expected one of `.`, `?`, or an operator
6
7 error: expected expression, found `$`
8   --> $DIR/expand-expr.rs:109:19
9    |
10 LL | expand_expr_fail!($);
11    |                   ^ expected expression
12
13 error: expected expression, found `$`
14   --> $DIR/expand-expr.rs:38:23
15    |
16 LL |     ($($t:tt)*) => { $($t)* };
17    |                       ^^^^ expected expression
18
19 error: expected expression, found `$`
20   --> $DIR/expand-expr.rs:111:28
21    |
22 LL | expand_expr_fail!(echo_pm!($));
23    |                            ^ expected expression
24
25 error: macro expansion ignores token `hello` and any following
26   --> $DIR/expand-expr.rs:115:47
27    |
28 LL | expand_expr_is!("string", echo_tts!("string"; hello));
29    |                           --------------------^^^^^- caused by the macro expansion here
30    |
31    = note: the usage of `echo_tts!` is likely invalid in expression context
32 help: you might be missing a semicolon here
33    |
34 LL | expand_expr_is!("string", echo_tts!("string"; hello););
35    |                                                     +
36
37 error: macro expansion ignores token `;` and any following
38   --> $DIR/expand-expr.rs:116:44
39    |
40 LL | expand_expr_is!("string", echo_pm!("string"; hello));
41    |                           -----------------^------- caused by the macro expansion here
42    |
43    = note: the usage of `echo_pm!` is likely invalid in expression context
44 help: you might be missing a semicolon here
45    |
46 LL | expand_expr_is!("string", echo_pm!("string"; hello););
47    |                                                    +
48
49 error: recursion limit reached while expanding `recursive_expand!`
50   --> $DIR/expand-expr.rs:124:16
51    |
52 LL | const _: u32 = recursive_expand!();
53    |                ^^^^^^^^^^^^^^^^^^^
54    |
55    = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`expand_expr`)
56    = note: this error originates in the macro `recursive_expand` (in Nightly builds, run with -Z macro-backtrace for more info)
57
58 error: aborting due to 7 previous errors
59