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