]> 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 561187d1934f6146e665fd8c120b8ec83e367e6b..6edd7390f0f31a37ad0cf088a3dec7ff0e2ec070 100644 (file)
@@ -9,11 +9,12 @@
 // except according to those terms.
 
 pub fn main() {
+    #[derive(Copy)]
     enum x { foo }
-    impl x : ::core::cmp::Eq {
-        pure fn eq(&self, other: &x) -> bool {
+    impl ::std::cmp::PartialEq for x {
+        fn eq(&self, other: &x) -> bool {
             (*self) as int == (*other) as int
         }
-        pure fn ne(&self, other: &x) -> bool { !(*self).eq(other) }
+        fn ne(&self, other: &x) -> bool { !(*self).eq(other) }
     }
 }