rust/src/test/ui/issues/issue-6596-2.rs

14 lines
205 B
Rust
Raw Normal View History

#![feature(macro_rules)]
macro_rules! g {
2013-05-22 15:07:02 -05:00
($inp:ident) => (
{ $inp $nonexistent }
2018-07-15 16:11:54 -05:00
//~^ ERROR unknown macro variable `nonexistent`
2013-05-22 15:07:02 -05:00
);
}
2013-05-22 15:07:02 -05:00
fn main() {
let foo = 0;
g!(foo);
2013-05-22 15:07:02 -05:00
}