testsuite: Add compile-fail test for #5883
testsuite: Test for #6153, closes #6153
auto merge of #7863 : catamorphism/rust/issue-5883, r=catamorphism