Fix #15896

Fix ICE when there's an incorrect enum variant constructor in match arm.

Closes #15896.