blob: a315981b6a69fdda98d50d7152a990088a598012 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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);
}
|