rust/tests/ui/parser/attribute/properly-recover-from-trailing-outer-attribute-in-body-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
277 B
Rust
Raw Normal View History

// 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!( (); (); );
}