2024-02-26 21:47:10 +01:00
|
|
|
// Issue #121647: recovery path leaving unemitted error behind
|
|
|
|
|
|
|
|
macro_rules! the_macro {
|
|
|
|
( $foo:stmt ; $bar:stmt ; ) => {
|
|
|
|
#[cfg()]
|
|
|
|
$foo //~ ERROR expected `;`, found `#`
|
|
|
|
|
2024-04-07 00:43:00 +02:00
|
|
|
#[cfg(FALSE)]
|
2024-02-26 21:47:10 +01:00
|
|
|
$bar
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
the_macro!( (); (); );
|
|
|
|
}
|