diff --git a/test_suite/tests/test_gen.rs b/test_suite/tests/test_gen.rs index 93d5cd3a5..3e19d3c4b 100644 --- a/test_suite/tests/test_gen.rs +++ b/test_suite/tests/test_gen.rs @@ -846,3 +846,19 @@ where { T::deserialize(deserializer) } + +////////////////////////////////////////////////////////////////////////// + +#[repr(packed)] +pub struct RemotePacked { + pub a: u8, + pub b: u16, +} + +#[derive(Serialize, Deserialize)] +#[repr(packed)] +#[serde(remote = "RemotePacked")] +pub struct RemotePackedDef { + a: u8, + b: u16, +}