]> git.lizzy.rs Git - rust.git/commitdiff
Add a test for where clause on unit struct
authortopecongiro <seuchida@gmail.com>
Mon, 13 Nov 2017 02:06:09 +0000 (11:06 +0900)
committertopecongiro <seuchida@gmail.com>
Mon, 13 Nov 2017 02:06:09 +0000 (11:06 +0900)
tests/source/structs.rs
tests/target/structs.rs

index 0f0e7ecf4faabab735f93580a134bef6f177fca4..564cc3f01c008fe4fd81dc0f059c850a097ff53d 100644 (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;
index 4192019a1e61f8b02155ede3706920a7afd12bc4..8015fc8eb2eca968cc160f35f974c5666f9ee66c 100644 (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;