]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-2.rs
Rollup merge of #87596 - jesyspa:issue-87318-hidden-whitespace, r=estebank
[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 }