about summary refs log tree commit diff
path: root/tests/ui/parser/macro/macro-attr-recovery.stderr
blob: ab3a0b7c60720b8215a82f398f2d400e209ae509 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
error: macro attribute argument matchers require parentheses
  --> $DIR/macro-attr-recovery.rs:5:9
   |
LL |     attr[$($args:tt)*] { $($body:tt)* } => {
   |         ^^^^^^^^^^^^^^
   |
help: the delimiters should be `(` and `)`
   |
LL -     attr[$($args:tt)*] { $($body:tt)* } => {
LL +     attr($($args:tt)*) { $($body:tt)* } => {
   |

error: attr: args="" body="struct S;"
  --> $DIR/macro-attr-recovery.rs:8:9
   |
LL | /         compile_error!(concat!(
LL | |             "attr: args=\"",
LL | |             stringify!($($args)*),
LL | |             "\" body=\"",
LL | |             stringify!($($body)*),
LL | |             "\"",
LL | |         ));
   | |__________^
...
LL |   #[attr]
   |   ------- in this attribute macro expansion
   |
   = note: this error originates in the attribute macro `attr` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 2 previous errors