Hi dear community,
I define a macro rules like
macro_rules! impl_get_self => {
($func_name:ident, [$($T:ident, $R: ident),*])
}
but it doesn't work for one time repeat?
impl_get_self!(get_self_2, [A,r1,B,r2]);
works well but
impl_get_self!(get_self, [A,r1])
do not work.
isn't ,*
means match 0 or more repeating pattern?