| 1 |
// Output of statement macros is always parsed as a statement, so no semicolon |
| 2 |
// is needed on the inner macro. |
| 3 |
|
| 4 |
macro_rules! m { |
| 5 |
(macro) => { m!(stmts) }; |
| 6 |
(stmts) => { let x = 3; x - 3 } |
| 7 |
} |
| 8 |
|
| 9 |
fn foo() -> i32 { |
| 10 |
m!{macro} |
| 11 |
} |
| 12 |
|
| 13 |
fn main() -> i32 { |
| 14 |
foo() |
| 15 |
} |