Auto merge of #34453 - frewsxcv:regress, r=sanxiyn
Auto merge of #34453 - frewsxcv:regress, r=sanxiyn

Add regression test for #24424.

Fixes https://github.com/rust-lang/rust/issues/24424.

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