]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/lint-ctypes.rs
Imported Upstream version 1.8.0+dfsg1
[rustc.git] / src / test / compile-fail / lint-ctypes.rs
index 5c49098d870536efef5c1c25450429455963577c..731c1edbfc00b7fdf0f70f0b9c1f1cc26b9bbe57 100644 (file)
@@ -13,8 +13,8 @@
 
 extern crate libc;
 
-trait Mirror { type It; }
-impl<T> Mirror for T { type It = Self; }
+trait Mirror { type It: ?Sized; }
+impl<T: ?Sized> Mirror for T { type It = Self; }
 #[repr(C)]
 pub struct StructWithProjection(*mut <StructWithProjection as Mirror>::It);
 #[repr(C)]