Skip to content

Commit 18ba02e

Browse files
committed
Add a test for #2208
Closes #2208.
1 parent c4314df commit 18ba02e

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

tests/source/structs.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,3 +273,11 @@ pub struct ReadinessCheckRegistry(Mutex<HashMap<Arc<String>, Box<Fn() -> Readine
273273
// #2144 unit struct with generics
274274
struct MyBox<T:?Sized>;
275275
struct MyBoxx<T, S> where T: ?Sized, S: Clone;
276+
277+
// #2208
278+
struct Test {
279+
/// foo
280+
#[serde(default)]
281+
pub join: Vec<String>,
282+
#[serde(default)] pub tls: bool,
283+
}

tests/target/structs.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,3 +321,12 @@ struct MyBoxx<T, S>
321321
where
322322
T: ?Sized,
323323
S: Clone;
324+
325+
// #2208
326+
struct Test {
327+
/// foo
328+
#[serde(default)]
329+
pub join: Vec<String>,
330+
#[serde(default)]
331+
pub tls: bool,
332+
}

0 commit comments

Comments
 (0)