Add test for #6861
auto merge of #6891 : luqmana/rust/unit-struct-drop, r=catamorphism