Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
macros
/
macro-2.rs
blob: 4890c991dcd7baafb303ace32b9ed43959aa9817 [
file
] [
log
] [
blame
]
// run-pass
pub
fn
main
()
{
macro_rules
!
mylambda_tt
{
(
$x
:
ident
,
$body
:
expr
)
=>
({
fn
f
(
$x
:
isize
)
->
isize
{
return
$body
;
};
f
})
}
assert_eq
!(
mylambda_tt
!(
y
,
y
*
2
)(
8
),
16
);
}