]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/dst-struct.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / dst-struct.rs
index 3644ca81d5659f784a13c28718cf9c1b10e07774..fa2af29431c308262352bdd6bec362dd4077cb04 100644 (file)
@@ -8,7 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-struct Fat<Sized? T> {
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
+struct Fat<T: ?Sized> {
     f1: int,
     f2: &'static str,
     ptr: T
@@ -46,11 +49,9 @@ fn foo3(x: &Fat<Fat<[int]>>) {
 }
 
 
-#[deriving(PartialEq,Eq)]
+#[derive(Copy, PartialEq, Eq)]
 struct Bar;
 
-impl Copy for Bar {}
-
 trait ToBar {
     fn to_bar(&self) -> Bar;
 }