Add a test for #2144

This commit is contained in:
topecongiro 2017-11-13 08:01:52 +09:00
parent ba8233d361
commit 8685cdadda
2 changed files with 6 additions and 0 deletions

View file

@ -269,3 +269,6 @@ pub(crate) struct Foo();
// #2125
pub struct ReadinessCheckRegistry(Mutex<HashMap<Arc<String>, Box<Fn() -> ReadinessCheck + Sync + Send>>>);
// #2144 unit struct with generics
struct MyBox<T:?Sized>;

View file

@ -313,3 +313,6 @@ pub(crate) struct Foo();
pub struct ReadinessCheckRegistry(
Mutex<HashMap<Arc<String>, Box<Fn() -> ReadinessCheck + Sync + Send>>>,
);
// #2144 unit struct with generics
struct MyBox<T: ?Sized>;