Add test of Serialize impl for packed struct

This commit is contained in:
David Tolnay committed 2020-05-09 22:52:49 -07:00
1 parent 9f47c47cad
commit c2114491ca
1 file changed
+7
+7
View File
@@ -701,6 +701,13 @@ fn test_gen() {
#[serde(other)]
Unknown,
}
#[derive(Serialize)]
#[repr(packed)]
struct Packed {
x: u8,
y: u16,
}
}
//////////////////////////////////////////////////////////////////////////