Add test for issue #13446

Closes #13446
auto merge of #14766 : Sawyer47/rust/issue-13446, r=huonw

Closes #13446