Skip to content

Warn about overlapping patterns #5657

Closed
@lkuper

Description

@lkuper

We already check pattern matches for non-exhaustiveness. It would be nice to also produce a warning for overlapping match patterns ("over-exhaustiveness"). GHC, for example, does this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions