Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
crumblingstatue opened this issue Jun 29, 2016 · 2 comments
Closed

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

crumblingstatue opened this issue Jun 29, 2016 · 2 comments

Comments

@crumblingstatue
Copy link
Contributor

crumblingstatue commented Jun 29, 2016

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)

@petrochenkov
Copy link
Contributor

Duplicate of #34209, fixed in #34365.

@crumblingstatue
Copy link
Contributor Author

Hmm. Strange I didn't find it when I searched for "enum struct ice". Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants