mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 04:57:35 +00:00
16 lines
275 B
Rust
16 lines
275 B
Rust
![]() |
// Issue #121647: recovery path leaving unemitted error behind
|
||
|
|
||
|
macro_rules! the_macro {
|
||
|
( $foo:stmt ; $bar:stmt ; ) => {
|
||
|
#[cfg()]
|
||
|
$foo //~ ERROR expected `;`, found `#`
|
||
|
|
||
|
#[cfg(bar)]
|
||
|
$bar
|
||
|
};
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
the_macro!( (); (); );
|
||
|
}
|