From 8685cdaddaac410c9d0b961cb38cec86ab6f7d87 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Mon, 13 Nov 2017 08:01:52 +0900 Subject: [PATCH] Add a test for #2144 --- tests/source/structs.rs | 3 +++ tests/target/structs.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/source/structs.rs b/tests/source/structs.rs index 6dfb565e80b..0f0e7ecf4fa 100644 --- a/tests/source/structs.rs +++ b/tests/source/structs.rs @@ -269,3 +269,6 @@ pub(crate) struct Foo(); // #2125 pub struct ReadinessCheckRegistry(Mutex, Box ReadinessCheck + Sync + Send>>>); + +// #2144 unit struct with generics +struct MyBox; diff --git a/tests/target/structs.rs b/tests/target/structs.rs index 1628c96f555..4192019a1e6 100644 --- a/tests/target/structs.rs +++ b/tests/target/structs.rs @@ -313,3 +313,6 @@ pub(crate) struct Foo(); pub struct ReadinessCheckRegistry( Mutex, Box ReadinessCheck + Sync + Send>>>, ); + +// #2144 unit struct with generics +struct MyBox;