Debian Codegraph @

gcc/testsuite/rust/compile/issue-2225.rs

raw
1 macro_rules! foo {
2 ($_:tt) => {};
3 () => {foo!($);};
4 }
5
6 macro_rules! bar {
7 () => {let $_a = 12;} // { dg-error "expecting .;. but .\\$. found" }
8 }
9
10 pub fn main() -> i32 {
11 foo!();
12 bar!();
13 0
14 }