Add test of Serialize impl for packed struct
This commit is contained in:
parent
9f47c47cad
commit
c2114491ca
@ -701,6 +701,13 @@ fn test_gen() {
|
||||
#[serde(other)]
|
||||
Unknown,
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[repr(packed)]
|
||||
struct Packed {
|
||||
x: u8,
|
||||
y: u16,
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user