Can omit fields in pattern match #32004
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code compiles on nightly:
Which it shouldn't, since
Foo::Bar
variant has a field and the pattern doesn't mention it. This can also cause an ICE:The text was updated successfully, but these errors were encountered: