]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/same-sequence-span.stderr
Auto merge of #106952 - petrochenkov:docglob, r=notriddle,GuillaumeGomez
[rust.git] / tests / ui / macros / same-sequence-span.stderr
1 error: `$x:expr` may be followed by `$y:tt`, which is not allowed for `expr` fragments
2   --> $DIR/same-sequence-span.rs:14:18
3    |
4 LL |     (1 $x:expr $($y:tt,)*
5    |                  ^^^^^ not allowed after `expr` fragments
6    |
7    = note: allowed there are: `=>`, `,` or `;`
8
9 error: `$x:expr` may be followed by `=`, which is not allowed for `expr` fragments
10   --> $DIR/same-sequence-span.rs:15:18
11    |
12 LL |                $(= $z:tt)*
13    |                  ^ not allowed after `expr` fragments
14    |
15    = note: allowed there are: `=>`, `,` or `;`
16
17 error: `$x:expr` may be followed by `$y:tt`, which is not allowed for `expr` fragments
18   --> $DIR/same-sequence-span.rs:19:1
19    |
20 LL |   proc_macro_sequence::make_foo!();
21    |   ^-------------------------------
22    |   |
23    |  _in this macro invocation
24    | |
25 LL | |
26 LL | |
27 LL | | fn main() {}
28    | |_________________________________^ not allowed after `expr` fragments
29    |
30    = note: allowed there are: `=>`, `,` or `;`
31    = note: this error originates in the macro `proc_macro_sequence::make_foo` (in Nightly builds, run with -Z macro-backtrace for more info)
32
33 error: `$x:expr` may be followed by `=`, which is not allowed for `expr` fragments
34   --> $DIR/same-sequence-span.rs:19:1
35    |
36 LL | proc_macro_sequence::make_foo!();
37    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not allowed after `expr` fragments
38    |
39    = note: allowed there are: `=>`, `,` or `;`
40    = note: this error originates in the macro `proc_macro_sequence::make_foo` (in Nightly builds, run with -Z macro-backtrace for more info)
41
42 error: aborting due to 4 previous errors
43