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

resolve: bad diagnostics for unresolved enum in pattern #33043

Closed
jseyfried opened this issue Apr 16, 2016 · 0 comments · Fixed by #33046
Closed

resolve: bad diagnostics for unresolved enum in pattern #33043

jseyfried opened this issue Apr 16, 2016 · 0 comments · Fixed by #33046

Comments

@jseyfried
Copy link
Contributor

jseyfried commented Apr 16, 2016

Reduced from an situation I encountered in the wild:

fn main() {
    match unimplemented!() {
        E::V => {}
        //^ currently is, "error: unresolved enum variant, struct or const `V`"
        //| should be "error: failed to resolve. Use of undeclared type or module `E`"
    }
}
Manishearth added a commit to Manishearth/rust that referenced this issue Apr 17, 2016
…agnostics, r=eddyb

Fix diagnostics for unresolved patterns

This fixes rust-lang#33043, a bug in the diagnostics for unresolved patterns.
r? @eddyb
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

Successfully merging a pull request may close this issue.

1 participant