Rollup merge of #34367 - Stebalien:issue-23281, r=sfackler
Rollup merge of #34367 - Stebalien:issue-23281, r=sfackler

Add regression test for #23281

Closes #23281

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