rust/src/test/ui/issues/issue-6596-2.rs
2018-12-25 21:08:33 -07:00

14 lines
223 B
Rust

#![feature(macro_rules)]
macro_rules! g {
($inp:ident) => (
{ $inp $nonexistent }
//~^ ERROR unknown macro variable `nonexistent`
//~| ERROR expected one of
);
}
fn main() {
g!(foo);
}