Add test for issue #13214

Closes #13214
auto merge of #14788 : Sawyer47/rust/issue-13214, r=huonw

Closes #13214