]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/issue-2288.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / issue-2288.rs
index 1f371f0a1c204c8f22212f0026fbda5106f64100..18bb6fe55299d0a0c362b11ab04de38e554e24b6 100644 (file)
@@ -8,17 +8,18 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 trait clam<A> {
   fn chowder(&self, y: A);
 }
 
+#[derive(Copy)]
 struct foo<A> {
   x: A,
 }
 
-impl<A:Copy> Copy for foo<A> {}
-
 impl<A> clam<A> for foo<A> {
   fn chowder(&self, _y: A) {
   }