dtolnay/proc-macro-hack

Pattern macros are not supported

dtolnay opened this issue · 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.