1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// Issue #121647: recovery path leaving unemitted error behind macro_rules! the_macro { ( $foo:stmt ; $bar:stmt ; ) => { #[cfg()] $foo //~ ERROR expected `;`, found `#` #[cfg(false)] $bar }; } fn main() { the_macro!( (); (); ); }