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

18 lines
244 B
Rust

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