Add a test for where clause on unit struct

This commit is contained in:
topecongiro 2017-11-13 11:06:09 +09:00
parent 1a6d117719
commit 1f5f9533d0
2 changed files with 5 additions and 0 deletions

View File

@ -272,3 +272,4 @@ pub(crate) struct Foo{}
// #2144 unit struct with generics
struct MyBox<T:?Sized>;
struct MyBoxx<T, S> where T: ?Sized, S: Clone;

View File

@ -316,3 +316,7 @@ pub struct ReadinessCheckRegistry(
// #2144 unit struct with generics
struct MyBox<T: ?Sized>;
struct MyBoxx<T, S>
where
T: ?Sized,
S: Clone;