rustpkg: Add a test that `rustpkg install` doesn't copy a non-changed file

This bug was already fixed, just needed a test.

Closes #9569
auto merge of #10371 : catamorphism/rust/rustpkg-issue-9482, r=catamorphism

This bug was already fixed, just needed a test.

Closes #9569