Skip to content

ICE with Const Generic expression inside turbofish syntax #60798

@imbrem

Description

@imbrem
Contributor

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.

Activity

added
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.
on May 13, 2019
varkor

varkor commented on May 13, 2019

@varkor
Member

This should be fixed by #60710.

varkor

varkor commented on May 14, 2019

@varkor
Member

Actually, this is a duplicate of #60818 (I'll close this issue simply because the other has more comments now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Participants

      @Centril@varkor@imbrem

      Issue actions

        ICE with Const Generic expression inside turbofish syntax · Issue #60798 · rust-lang/rust