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