rust/src/test/ui/issues/issue-6596-2.rs
2018-12-27 15:51:37 +03:00

14 lines
205 B
Rust

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