Add test of Serialize impl for packed struct

This commit is contained in:
David Tolnay 2020-05-09 22:52:49 -07:00
parent 9f47c47cad
commit c2114491ca
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -701,6 +701,13 @@ fn test_gen() {
#[serde(other)]
Unknown,
}
#[derive(Serialize)]
#[repr(packed)]
struct Packed {
x: u8,
y: u16,
}
}
//////////////////////////////////////////////////////////////////////////