Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
binding
/
match-var-hygiene.rs
blob: b076082a5f4138518223cbb4cd9ef0e7a5da1d6d [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
// shouldn't affect evaluation of $ex.
macro_rules
!
bad_macro
{
(
$ex
:
expr
)
=>
(
{
match
9
{
_x
=>
$ex
}}
)}
fn
main
()
{
match
8
{
_x
=>
assert_eq
!(
bad_macro
!(
_x
),
8
)
}
}