diff --git a/tests/source/structs.rs b/tests/source/structs.rs index 564cc3f01c0..25070aef34c 100644 --- a/tests/source/structs.rs +++ b/tests/source/structs.rs @@ -273,3 +273,11 @@ pub struct ReadinessCheckRegistry(Mutex, Box Readine // #2144 unit struct with generics struct MyBox; struct MyBoxx where T: ?Sized, S: Clone; + +// #2208 +struct Test { + /// foo + #[serde(default)] + pub join: Vec, + #[serde(default)] pub tls: bool, +} diff --git a/tests/target/structs.rs b/tests/target/structs.rs index 0eedea6933c..59a57a9b5b4 100644 --- a/tests/target/structs.rs +++ b/tests/target/structs.rs @@ -321,3 +321,12 @@ struct MyBoxx where T: ?Sized, S: Clone; + +// #2208 +struct Test { + /// foo + #[serde(default)] + pub join: Vec, + #[serde(default)] + pub tls: bool, +}