Skip to content

Initializing an array with [0, ..-1] compiles, but causes a segfault at runtime #6977

Closed
@bstrie

Description

@bstrie
fn main() {
    let _x = [0, ..-1];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions