testsuite: update a test for #4350
auto merge of #6321 : ILyoan/rust/test4350, r=z0w0