dtolnay opened this issue 7 years ago · 0 comments
Rust macro_rules macros can be expanded in pattern position:
macro_rules! zero { () => { 0 } } fn main() { if let zero!() = 0 {} }
This is not possible with proc-macro-hack.