Skip to content

Allow coercions from statically sized to dynamically sized arrays #13716

Closed
@nrc

Description

@nrc

The following should be valid:

fn coerce1(x: &[int, ..5]) {
    let y = x as &[int];
}
fn coerce2(x: ~[int, ..5]) {
    let y = x as ~[int];
}

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