This is a nightly regression, doesn't happen in 1.9 stable. ``` Rust 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](https://is.gd/j6ybwA) Locally tested with `rustc 1.11.0-nightly (ad7fe6521 2016-06-23)`