Skip to content

Non-existent struct enum variant in pattern causes ICE #34564

Closed
@crumblingstatue

Description

@crumblingstatue

This is a nightly regression, doesn't happen in 1.9 stable.

fn main () {
    enum Enum {}
    if let Enum::Bar{} = unimplemented!() {}
}
error: internal compiler error: ../src/librustc/hir/def.rs:77: path not fully resolved: PathResolution { base_def: Enum(DefId { krate: 0, node: DefIndex(5) => main::Enum }), depth: 1 }

Playground

Locally tested with rustc 1.11.0-nightly (ad7fe6521 2016-06-23)

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