Skip to content

resolve: bad diagnostics for unresolved enum in pattern #33043

Closed

Description

@jseyfried

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`"
    }
}

Activity

  1. added a commit that references this issue on Apr 17, 2016
    e1db767
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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