Skip to content

Restrictions on constants in match patterns should be documented. #795

Open
@alercah

Description

@alercah

The restrictions from RFC 1445 are not mentioned anywhere. Given that #[structural_match] is not intended for stabilization, the reference should avoid mentioning it, and instead mention that a type is eligible if and only if either it is a magic standard-library type or derives PartialEq and Eq and all fields are eligible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions