Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
macros
/
issue-34421-mac-expr-bad-stmt-good-add-semi.rs
blob: d78139365549a546b5093dff80615b87e1dea043 [
file
] [
log
] [
blame
] [
edit
]
macro_rules
!
make_item
{
(
$a
:
ident
)
=>
{
struct
$a
;
};
//~^ ERROR expected expression
//~| ERROR expected expression
}
fn
a
()
{
make_item
!(
A
)
}
fn
b
()
{
make_item
!(
B
)
}
fn
main
()
{}