Exhaustiveness checker errors on unconstructible enum variant #69696
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
Playground
I expect this to work, since the Phantom case is not constructible, since it contains a Void type.
The exhaustiveness checker instead errors because it thinks that the Phantom case should be covered as well:
Meta
Happens on stable and nightly as of 2020-03-04
The text was updated successfully, but these errors were encountered: