From bbfdb12c3e5f7445f00b0cf4231f1eadeed370a2 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Wed, 8 Nov 2017 11:52:14 +0900 Subject: [PATCH] Add a test for #2125 --- tests/source/structs.rs | 3 +++ tests/target/structs.rs | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/tests/source/structs.rs b/tests/source/structs.rs index acae17befdd..6dfb565e80b 100644 --- a/tests/source/structs.rs +++ b/tests/source/structs.rs @@ -266,3 +266,6 @@ pub(crate) struct Foo{} pub(in self) struct Foo(); pub(super) struct Foo(); pub(crate) struct Foo(); + +// #2125 +pub struct ReadinessCheckRegistry(Mutex, Box ReadinessCheck + Sync + Send>>>); diff --git a/tests/target/structs.rs b/tests/target/structs.rs index e29647c71fb..1628c96f555 100644 --- a/tests/target/structs.rs +++ b/tests/target/structs.rs @@ -308,3 +308,8 @@ pub(crate) struct Foo {} pub(self) struct Foo(); pub(super) struct Foo(); pub(crate) struct Foo(); + +// #2125 +pub struct ReadinessCheckRegistry( + Mutex, Box ReadinessCheck + Sync + Send>>>, +);