Skip to content

ICE in match statement at conditional catch-all #4369

Closed
@Kimundi

Description

@Kimundi

Reproduceable with this:

fn main() {
    let x = 5;
    match x {
        // 3 => (), // uncomment to get non-exhaustive patterns error
        _ if true => (),
        // _ => ()   // ICE if missing
    }
}

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