Skip to content

ICE with Const Generic expression inside turbofish syntax #60798

Closed
@imbrem

Description

@imbrem

I found an ICE with the following:

#![feature(const_generics)]

struct Foo<const N : usize>();

fn main() {
    let _ = Foo::<3>();
}

Here's a link to the Playground

I was poking around in collect.rs, where the error seems to be from, and it looks like some cases in a match statement are not being handled, but I'm not familiar enough with the code-base to see how to fix this.

Metadata

Metadata

Assignees

Labels

A-const-genericsArea: const generics (parameters and arguments)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions