Skip to content

exhaustiveness checking does not tell me what is missing #2337

Closed
@nikomatsakis

Description

@nikomatsakis

In this simple program:

enum expr {
  a, b, c, d
}

fn foo(e: expr) {
    alt e {
      a {}
      b {}
      c {}
    }
}

fn main() { }

I get missing-case.rs:6:4: 10:5 error: non-exhaustive patterns but I do not get any indication what that missing case might be.

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