]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/coherence-impl-in-fn.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / coherence-impl-in-fn.rs
index df0012e07ec72ede9248e4d04d8e1602ced66979..6edd7390f0f31a37ad0cf088a3dec7ff0e2ec070 100644 (file)
@@ -9,8 +9,8 @@
 // except according to those terms.
 
 pub fn main() {
+    #[derive(Copy)]
     enum x { foo }
-    impl Copy for x {}
     impl ::std::cmp::PartialEq for x {
         fn eq(&self, other: &x) -> bool {
             (*self) as int == (*other) as int