Skip to content

Macros in match blocks can't expand to a pattern *and* block #26330

Closed
@reem

Description

@reem

Example of incorrect behavior: http://is.gd/WmvsML

In the above example, the branch! macro should expand to a pattern and block, but rustc insists that it only expands into a pattern, and still expects further patterns or a block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions