Token normalization is merged directly into `bump`. Special "unknown macro variable" diagnostic for unexpected `$`s is removed as preventing legal code from compiling.
13 lines
246 B
Rust
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);
|
|
}
|