@@ -7,54 +7,5 @@ LL | macro_rules!test{($l:expr,$_:r)=>({const:y y)}
77 | |unclosed delimiter
88 | closing delimiter possibly meant for this
99
10- error: invalid fragment specifier `r`
11- --> $DIR/issue-102878.rs:1:27
12- |
13- LL | macro_rules!test{($l:expr,$_:r)=>({const:y y)}
14- | ^^^^
15- |
16- = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `lifetime`, `literal`, `path`, `meta`, `tt`, `item` and `vis`
17-
18- error: expected identifier, found keyword `const`
19- --> $DIR/issue-102878.rs:1:36
20- |
21- LL | macro_rules!test{($l:expr,$_:r)=>({const:y y)}
22- | ^^^^^ expected identifier, found keyword
23- ...
24- LL | fn s(){test!(1,i)}
25- | ---------- in this macro invocation
26- |
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
29- |
30- LL | macro_rules!test{($l:expr,$_:r)=>({r#const:y y)}
31- | ++
32-
33- error: expected identifier, found keyword `const`
34- --> $DIR/issue-102878.rs:1:36
35- |
36- LL | macro_rules!test{($l:expr,$_:r)=>({const:y y)}
37- | ^^^^^ expected identifier, found keyword
38- ...
39- LL | fn s(){test!(1,i)}
40- | ---------- in this macro invocation
41- |
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
44- |
45- LL | macro_rules!test{($l:expr,$_:r)=>({r#const:y y)}
46- | ++
47-
48- error: expected identifier, found `:`
49- --> $DIR/issue-102878.rs:1:41
50- |
51- LL | macro_rules!test{($l:expr,$_:r)=>({const:y y)}
52- | ^ expected identifier
53- ...
54- LL | fn s(){test!(1,i)}
55- | ---------- in this macro invocation
56- |
57- = note: this error originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
58-
59- error: aborting due to 5 previous errors
10+ error: aborting due to previous error
6011
0 commit comments