Auto merge of #34262 - dsprenkels:enum_pattern_resolve_ice, r=eddyb
Auto merge of #34262 - dsprenkels:enum_pattern_resolve_ice, r=eddyb

Add regression test for #33293

This PR adds a regression test for #33293.

Closes #33293.
r? @eddyb

graydon/rust,GBGamer/rust,graydon/rust,graydon/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,graydon/rust,GBGamer/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust,aidancully/rust,aidancully/rust