Skip to content

Missing "unreachable pattern" error with range #27005

@eefriedman

Description

@eefriedman
fn main() {
    match 'a' {
        'a' => {}
        'b' => {}
        'a'...'b' => {}
        _ => {}
    }
}

Currently compiles, but the 'a'...'b' pattern is clearly unreachable.

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