macro_rules! g_error_match {
(
($inp:expr) {
($slot:ident : $errtype:ty) => $handler:expr,
$(($slot_tail:ident : $errtype_tail:ty) => $handler_tail:expr,)*
other $catchall_slot:ident => $catchall_handler:expr
}
) => { ... };
(
($inp:expr) {
other $catchall_slot:ident => $catchall_handler:expr
}
) => { ... };
}