summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-102878.stderr
blob: e0b8855a38d05c23dde3282070f2c8a4aebee95f (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
error: mismatched closing delimiter: `)`
  --> $DIR/issue-102878.rs:1:35
   |
LL | macro_rules!test{($l:expr,$_:r)=>({const:y y)}
   |                                  -^         ^ mismatched closing delimiter
   |                                  ||
   |                                  |unclosed delimiter
   |                                  closing delimiter possibly meant for this

error: invalid fragment specifier `r`
  --> $DIR/issue-102878.rs:1:27
   |
LL | macro_rules!test{($l:expr,$_:r)=>({const:y y)}
   |                           ^^^^
   |
   = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `lifetime`, `literal`, `path`, `meta`, `tt`, `item` and `vis`

error: expected identifier, found keyword `const`
  --> $DIR/issue-102878.rs:1:36
   |
LL | macro_rules!test{($l:expr,$_:r)=>({const:y y)}
   |                                    ^^^^^ expected identifier, found keyword
...
LL | fn s(){test!(1,i)}
   |        ---------- in this macro invocation
   |
   = note: this error originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
help: escape `const` to use it as an identifier
   |
LL | macro_rules!test{($l:expr,$_:r)=>({r#const:y y)}
   |                                    ++

error: expected identifier, found keyword `const`
  --> $DIR/issue-102878.rs:1:36
   |
LL | macro_rules!test{($l:expr,$_:r)=>({const:y y)}
   |                                    ^^^^^ expected identifier, found keyword
...
LL | fn s(){test!(1,i)}
   |        ---------- in this macro invocation
   |
   = note: this error originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
help: escape `const` to use it as an identifier
   |
LL | macro_rules!test{($l:expr,$_:r)=>({r#const:y y)}
   |                                    ++

error: expected identifier, found `:`
  --> $DIR/issue-102878.rs:1:41
   |
LL | macro_rules!test{($l:expr,$_:r)=>({const:y y)}
   |                                         ^ expected identifier
...
LL | fn s(){test!(1,i)}
   |        ---------- in this macro invocation
   |
   = note: this error originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 5 previous errors