// As dst-struct.rs, but the unsized field is the only field in the struct.
-struct Fat<Sized? T> {
+struct Fat<T: ?Sized> {
ptr: T
}
assert!(x.ptr[1].to_bar() == bar);
}
-#[deriving(PartialEq,Eq)]
+#[derive(Copy, PartialEq, Eq)]
struct Bar;
-impl Copy for Bar {}
-
trait ToBar {
fn to_bar(&self) -> Bar;
}