]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/empty-tag.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / empty-tag.rs
index 58eb4ce2f7a559a4814c0247980937afed6a59cb..35c394cf535a579d538372e801a58758f6d1b789 100644 (file)
@@ -8,11 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[derive(Show)]
+#[derive(Copy, Show)]
 enum chan { chan_t, }
 
-impl Copy for chan {}
-
 impl PartialEq for chan {
     fn eq(&self, other: &chan) -> bool {
         ((*self) as uint) == ((*other) as uint)
@@ -25,6 +23,6 @@ fn wrapper3(i: chan) {
 }
 
 pub fn main() {
-    let wrapped = {||wrapper3(chan::chan_t)};
+    let wrapped = {|&:|wrapper3(chan::chan_t)};
     wrapped();
 }