Sign in
fuchsia
/
third_party
/
rust
/
f02ffb8b4ca760117875f3b5326e9cff6598dde3
/
.
/
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`
}