diff --git a/tls_codec/derive/tests/decode_bytes.rs b/tls_codec/derive/tests/decode_bytes.rs index c08ce3be8..2c42f0638 100644 --- a/tls_codec/derive/tests/decode_bytes.rs +++ b/tls_codec/derive/tests/decode_bytes.rs @@ -240,9 +240,9 @@ fn enum_with_custom_serialized_field() { #[test] fn that_skip_attribute_on_struct_works() { - fn test(test: T, expected: T) + fn test(test: T, expected: T) where - T: std::fmt::Debug + PartialEq + SerializeBytes + Size, + T: DeserializeBytes + std::fmt::Debug + PartialEq + SerializeBytes + Size, { let serialized = test.tls_serialize().unwrap(); let (deserialized, rest) = T::tls_deserialize_bytes(&serialized).unwrap();