Skip to content

ICE with const generics parameter in literal array length. #61490

Closed
@crlf0710

Description

@crlf0710

Seems similar to #61368, but different:

#![feature(const_generics)]

fn f<const LEN: usize>() {
    let a = [true; LEN];
}

play link

@varkor @yodaldevoid

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