Skip to content

No type inference for slice patterns #3043

@jplatte

Description

@jplatte

Minimal reproduction:

let xs: &[f64] = &[0.0];
match xs {
    &[x] => {
        x; // {unknown}
    }
    _ => {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tytype system / type inference / traits / method resolutionE-has-instructionsIssue has some instructions and pointers to code to get startedE-medium

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions