test: Add test for #7563. Closes #7563
auto merge of #8620 : brson/rust/issue-7563, r=alexcrichton