From 18ba02ea70b9d6e9fba5306c6b7f2cd84df5d452 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Mon, 5 Feb 2018 08:38:53 +0900 Subject: [PATCH] Add a test for #2208 Closes #2208. --- tests/source/structs.rs | 8 ++++++++ tests/target/structs.rs | 9 +++++++++ 2 files changed, 17 insertions(+) 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, +}