Sign in
fuchsia
/
third_party
/
rust
/
043d9160769a330df5d8a21e846785e2c89f357d
/
.
/
src
/
test
/
ui
/
macros
/
macro-parameter-span.rs
blob: 5609f84e141b6377277c10f80f28cd2791c9c2af [
file
] [
log
] [
blame
]
macro_rules
!
foo
{
(
$id
:
ident
)
=>
{
$id
}
}
// Testing that the error span points to the parameter 'x' in the callsite,
// not to the macro variable '$id'
fn
main
()
{
foo
!(
x
//~ ERROR cannot find value `x` in this scope
);
}