Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
issues
/
issue-39848.rs
blob: 5d1db7be857332b527d7ad21210258c9d7e5a14a [
file
] [
log
] [
blame
]
macro_rules
!
get_opt
{
(
$tgt
:
expr
,
$field
:
ident
)
=>
{
if
$tgt
.
has_$field
()
{}
}
}
fn
main
()
{
get_opt
!(
bar
,
foo
);
//~^ ERROR expected `{`, found `foo`
}