]> git.lizzy.rs Git - rust.git/commitdiff
Add a test for #2125
authortopecongiro <seuchida@gmail.com>
Wed, 8 Nov 2017 02:52:14 +0000 (11:52 +0900)
committertopecongiro <seuchida@gmail.com>
Wed, 8 Nov 2017 02:52:14 +0000 (11:52 +0900)
tests/source/structs.rs
tests/target/structs.rs

index acae17befdd40e21566354379a6888df908dddc6..6dfb565e80bf7e417fb424b6605798edb38a2599 100644 (file)
@@ -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<HashMap<Arc<String>, Box<Fn() -> ReadinessCheck + Sync + Send>>>);
index e29647c71fbbf72827c42951d37c14ff12d086ed..1628c96f555270b68400c5547c7273b1ecfed3fa 100644 (file)
@@ -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<HashMap<Arc<String>, Box<Fn() -> ReadinessCheck + Sync + Send>>>,
+);