Segfault when matching on enums #38002
Labels
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code (playground link) gives me a segfault on the current beta:
I've reduced it as much as I can, even removing the
A
constructor on the enum causes it to work.I expect the output to be
(which it is on stable),
but instead I get
The text was updated successfully, but these errors were encountered: