blob: 8f7c98d9a67a77baaee8f3f6332d56869631439c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![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);
}
|