Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Pattern macros are not supported #20

Open
@dtolnay

Description

@dtolnay

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions