mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-05-01 00:48:00 +00:00
Add test of Serialize impl for packed struct
This commit is contained in:
@@ -701,6 +701,13 @@ fn test_gen() {
|
||||
#[serde(other)]
|
||||
Unknown,
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[repr(packed)]
|
||||
struct Packed {
|
||||
x: u8,
|
||||
y: u16,
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user