Skip to content

internal compiler error: cannot get field types from the enum type Foo without a node ID #11577

Closed
@pzol

Description

@pzol
#[feature(struct_variant)];

enum Foo {
  Bar { num: int}
}

fn test_foo() {
  let bar = Bar { num: 1 };
  let Bar { num } = bar;
}

task 'rustc' failed at 'explicit failure', /Users/pzol/rust/rust/src/libsyntax/diagnostic.rs:75
task '

' failed at 'explicit failure', /Users/pzol/rust/rust/src/librustc/lib.rs:453

rustc -v
rustc 0.10-pre (29070c3 2014-01-14 23:01:51 -0800)
host: x86_64-apple-darwin

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions