Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
parser
/
attribute
/
properly-recover-from-trailing-outer-attribute-in-body-2.rs
blob: 1cd3f13d7b67a360608632dd40149892d8bd5091 [
file
] [
log
] [
blame
]
// 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
!(
();
();
);
}