Skip to content

Panicked at DotDotPat  #3999

@edwin0cheng

Description

@edwin0cheng
panicked at 'internal error: entered unreachable code: `DotDotPat` requires special handling and should not be mapped to a Pat.', crates\ra_hir_def\src\body\lower.rs:669:3

Code to reproduce :

fn foo(params: &[usize]) {
    match params {
        [ps @ .., _] => {}
        _ => {}
    }
}

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