Regression test closes #7660
auto merge of #12375 : FlaPer87/rust/issue-7660, r=cmr