... in macro invocations.
Issue: <https://github.com/rust-lang/rust/issues/149692>.
(cherry picked from commit 31531b3665)
11 lines
337 B
Text
11 lines
337 B
Text
error: expected one of `!` or `::`, found `(`
|
|
--> $DIR/kw-in-const-item-pos-recovery-149692.rs:8:14
|
|
|
|
|
LL | (const $id:item()) => {}
|
|
| -------- while parsing argument for this `item` macro fragment
|
|
...
|
|
LL | m!(const Self());
|
|
| ^ expected one of `!` or `::`
|
|
|
|
error: aborting due to 1 previous error
|
|
|