rust/tests/target/macro_rules.rs
2018-02-04 11:53:10 +00:00

16 lines
218 B
Rust

macro_rules! m {
($expr: expr, $func: ident) => {{
let x = $expr;
$func(x)
}};
() => {
};
($item: ident) => {
mod macro_item {
struct $item;
}
};
}