2015-01-02 23:00:06 +01:00
|
|
|
macro_rules! g {
|
2013-05-22 16:07:02 -04:00
|
|
|
($inp:ident) => (
|
2015-01-02 23:00:06 +01:00
|
|
|
{ $inp $nonexistent }
|
2020-02-16 16:47:24 +03:00
|
|
|
//~^ ERROR expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `$`
|
2013-05-22 16:07:02 -04:00
|
|
|
);
|
2015-01-02 14:44:21 -08:00
|
|
|
}
|
2013-05-22 16:07:02 -04:00
|
|
|
|
|
|
|
|
fn main() {
|
2018-12-16 20:23:27 +03:00
|
|
|
let foo = 0;
|
2015-01-02 23:00:06 +01:00
|
|
|
g!(foo);
|
2013-05-22 16:07:02 -04:00
|
|
|
}
|