1 error: mismatched closing delimiter: `)`
2 --> $DIR/issue-102878.rs:1:35
4 LL | macro_rules!test{($l:expr,$_:r)=>({const:y y)}
5 | -^ ^ mismatched closing delimiter
8 | closing delimiter possibly meant for this
10 error: invalid fragment specifier `r`
11 --> $DIR/issue-102878.rs:1:27
13 LL | macro_rules!test{($l:expr,$_:r)=>({const:y y)}
16 = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `lifetime`, `literal`, `path`, `meta`, `tt`, `item` and `vis`
18 error: expected identifier, found keyword `const`
19 --> $DIR/issue-102878.rs:1:36
21 LL | macro_rules!test{($l:expr,$_:r)=>({const:y y)}
22 | ^^^^^ expected identifier, found keyword
24 LL | fn s(){test!(1,i)}
25 | ---------- in this macro invocation
27 = note: this error originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
28 help: escape `const` to use it as an identifier
30 LL | macro_rules!test{($l:expr,$_:r)=>({r#const:y y)}
33 error: expected identifier, found keyword `const`
34 --> $DIR/issue-102878.rs:1:36
36 LL | macro_rules!test{($l:expr,$_:r)=>({const:y y)}
37 | ^^^^^ expected identifier, found keyword
39 LL | fn s(){test!(1,i)}
40 | ---------- in this macro invocation
42 = note: this error originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
43 help: escape `const` to use it as an identifier
45 LL | macro_rules!test{($l:expr,$_:r)=>({r#const:y y)}
48 error: expected identifier, found `:`
49 --> $DIR/issue-102878.rs:1:41
51 LL | macro_rules!test{($l:expr,$_:r)=>({const:y y)}
52 | ^ expected identifier
54 LL | fn s(){test!(1,i)}
55 | ---------- in this macro invocation
57 = note: this error originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
59 error: aborting due to 5 previous errors