Sign in
fuchsia
/
third_party
/
rust
/
f02ffb8b4ca760117875f3b5326e9cff6598dde3
/
.
/
src
/
test
/
ui
/
lambda-var-hygiene.rs
blob: bf06765e5dd415c6392c38d26715dd013cccadf2 [
file
] [
log
] [
blame
]
// run-pass
// shouldn't affect evaluation of $ex:
macro_rules
!
bad_macro
{
(
$ex
:
expr
)
=>
({(|
_x
|
{
$ex
})
(
9
)
})
}
fn
takes_x
(
_x
:
isize
)
{
assert_eq
!(
bad_macro
!(
_x
),
8
);
}
fn
main
()
{
takes_x
(
8
);
}