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