Skip to content

Commit

Permalink
Add a test for #2208
Browse files Browse the repository at this point in the history
Closes #2208.
  • Loading branch information
topecongiro committed Feb 4, 2018
1 parent c4314df commit 18ba02e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/source/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,11 @@ pub struct ReadinessCheckRegistry(Mutex<HashMap<Arc<String>, Box<Fn() -> Readine
// #2144 unit struct with generics
struct MyBox<T:?Sized>;
struct MyBoxx<T, S> where T: ?Sized, S: Clone;

// #2208
struct Test {
/// foo
#[serde(default)]
pub join: Vec<String>,
#[serde(default)] pub tls: bool,
}
9 changes: 9 additions & 0 deletions tests/target/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,3 +321,12 @@ struct MyBoxx<T, S>
where
T: ?Sized,
S: Clone;

// #2208
struct Test {
/// foo
#[serde(default)]
pub join: Vec<String>,
#[serde(default)]
pub tls: bool,
}

0 comments on commit 18ba02e

Please sign in to comment.