about summary refs log tree commit diff
path: root/tests/ui/offset-of/offset-of-dst-field.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/offset-of/offset-of-dst-field.rs')
-rw-r--r--tests/ui/offset-of/offset-of-dst-field.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ui/offset-of/offset-of-dst-field.rs b/tests/ui/offset-of/offset-of-dst-field.rs
index 2e0bdb151e1..575a66fe302 100644
--- a/tests/ui/offset-of/offset-of-dst-field.rs
+++ b/tests/ui/offset-of/offset-of-dst-field.rs
@@ -1,5 +1,6 @@
-#![feature(extern_types)]
+#![feature(extern_types, sized_hierarchy)]
 
+use std::marker::PointeeSized;
 use std::mem::offset_of;
 
 struct Alpha {
@@ -26,7 +27,7 @@ struct Gamma {
     z: Extern,
 }
 
-struct Delta<T: ?Sized> {
+struct Delta<T: PointeeSized> {
     x: u8,
     y: u16,
     z: T,