Skip to content

Add ability to use or-patterns within expressions in match arms #14516

Closed
@Manishearth

Description

@Manishearth

We already can use patterns like Some(_) in a match arm. However, stuff like Some( 1 | 2 | 3) doesn't work.

Could support for nesting patterns be added?

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