Skip to content

macro_rules expr matcher doesn't match async #52951

Closed
@cramertj

Description

@cramertj
macro_rules! match_expr {
    ($x:expr) => {}
}

fn main() {
    match_expr!(async {})
}

fails with "error: no rules expected the token async". Playground link

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserArea: The lexing & parsing of Rust source code to an ASTE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions