Skip to content

Document some pattern restrictions. #585

Open

Description

I have the suspicion there are a lot of restrictions for patterns that are undocumented.

One example: E0009 where a pattern "cannot bind by-move and by-ref in the same pattern"
See all the restrictions in check_legality_of_move_bindings and check_legality_of_bindings_in_at_patterns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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