rust/src/test/ui/issues/issue-6596-2.rs
Vadim Petrochenkov d33b3562e5 parser: Do not call bump recursively
Token normalization is merged directly into `bump`.
Special "unknown macro variable" diagnostic for unexpected `$`s is removed as preventing legal code from compiling.
2020-02-17 22:12:39 +03:00

13 lines
246 B
Rust

#![feature(macro_rules)]
macro_rules! g {
($inp:ident) => (
{ $inp $nonexistent }
//~^ ERROR expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `$`
);
}
fn main() {
let foo = 0;
g!(foo);
}