about summary refs log tree commit diff
path: root/tests/ui/parser/macro/issue-33569.stderr
blob: dd8e38f0d6e94fa60a4b0ad2b395e8a96fac5013 (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
32
33
34
35
36
37
38
39
40
41
42
error: expected identifier, found `+`
  --> $DIR/issue-33569.rs:2:8
   |
LL |     { $+ } => {
   |        ^

error: missing fragment specifier
  --> $DIR/issue-33569.rs:2:8
   |
LL |     { $+ } => {
   |        ^
   |
   = note: fragment specifiers must be provided
   = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `lifetime`, `literal`, `path`, `meta`, `tt`, `item` and `vis`, along with `expr_2021` and `pat_param` for edition compatibility
help: try adding a specifier here
   |
LL |     { $+:spec } => {
   |         +++++

error: expected one of: `*`, `+`, or `?`
  --> $DIR/issue-33569.rs:4:13
   |
LL |         $(x)(y)
   |             ^^^

error: unexpected end of macro invocation
  --> $DIR/issue-33569.rs:8:1
   |
LL | macro_rules! foo {
   | ---------------- when calling this macro
...
LL | foo!();
   | ^^^^^^ missing tokens in macro arguments
   |
note: while trying to match meta-variable `$<!dummy!>:tt`
  --> $DIR/issue-33569.rs:2:8
   |
LL |     { $+ } => {
   |        ^

error: aborting due to 4 previous errors