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;