testsuite: Add two test cases (one xfailed)
auto merge of #6368 : catamorphism/rust/issue-5315, r=catamorphism