Skip to content

macro!() + foo fails to parse #20093

Closed
@ftxqxd

Description

@ftxqxd
fn main() {
    macro!() + foo; // error: expected one of `.`, `;`, or `}`, found `+`
}

I suspect this may be because the parser calls parse_dot_or_call_expr_with after parsing a macro invocation instead of calling a method that accepts more operators, such as the second half of parse_assign_expr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions