1 2 3 4 5 6 7 8 9 10 11 12 13
macro_rules! foo { ($a:ident, $b:ident, $c:ident) => { struct $a; struct $b; }, ($a:ident) => { struct $a; }, } foo! { A }