Added test for tuple struct destructuring
@@ -8,3 +8,11 @@ pub fn test_simpl_fails() -> Res {
ResTyp::Ok(res) => res,
}
}
+
+#[derive(Clone)]
+pub struct MyTupleType(u16, u8);
+
+pub fn test_tuple_destructuring() {
+ let tuple = MyTupleType(1u16, 2u8).clone();
+ let MyTupleType(_a, _b) = tuple;
+}
