Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
parser
/
attribute
/
properly-recover-from-trailing-outer-attribute-in-body-2.rs
blob: e2a62922bcc5db5ff6fa73e0e1eda689c6f21bd5 [
file
] [
log
] [
blame
] [
edit
]
// 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
!(
();
();
);
}