Skip to content

Slicing_syntax not equal with method as_slice(). #20429

@amosbird

Description

@amosbird

let a = &[1i, 2, 3][] will compile while let a = &[1i, 2, 3].as_slice() will not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions