Skip to content

ICE: node_id_to_type: no type for node unknown node (id=N) #4875

Closed
@alexcrichton

Description

@alexcrichton

For this program:

pub struct Foo<T> {
  data: T,
}

fn foo<T>(Foo{data}: Foo<T>) {
}

fn main() {
}

You receive this output:

$ rustc foo.rs                                           
error: internal compiler error: node_id_to_type: no type for node `unknown node (id=11)`

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions