]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-2.rs
Auto merge of #79022 - SpyrosRoum:stabilize-deque_range, r=m-ou-se
[rust.git] / src / test / ui / macros / macro-2.rs
1 // run-pass
2 pub fn main() {
3
4     macro_rules! mylambda_tt {
5         ($x:ident, $body:expr) => ({
6             fn f($x: isize) -> isize { return $body; }
7             f
8         })
9     }
10
11     assert_eq!(mylambda_tt!(y, y * 2)(8), 16);
12 }