rust/tests/ui/macros/issue-6596-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
220 B
Rust
Raw Normal View History

macro_rules! g {
2013-05-22 20:07:02 +00:00
($inp:ident) => (
{ $inp $nonexistent }
//~^ ERROR expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `$`
2013-05-22 20:07:02 +00:00
);
}
2013-05-22 20:07:02 +00:00
fn main() {
let foo = 0;
g!(foo);
2013-05-22 20:07:02 +00:00
}