rust/tests/target/macro_rules.rs

18 lines
244 B
Rust
Raw Normal View History

2018-01-24 13:09:49 -06:00
macro_rules! m {
($expr: expr, $func: ident) => {
{
let x = $expr;
$func(x)
}
};
() => {
};
($item: ident) => {
mod macro_item {
struct $item;
}
};
}