Why can't pat_param be followed by a colon in macro_rules?
Rust Internals [Unofficial]
June 13, 2026
Given that pat_param is in parameters (duh) which are followed by : always, this seems at least plausible? I don't think we'd want to do it for pat in general, but for pat_param maybe?
Discussion in the ATmosphere