]> 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 6b780d854599e54880d1692b4f2177136e747e34..35c394cf535a579d538372e801a58758f6d1b789 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deriving(Show)]
+#[derive(Copy, Show)]
 enum chan { chan_t, }
 
 impl PartialEq for chan {
@@ -23,6 +23,6 @@ fn wrapper3(i: chan) {
 }
 
 pub fn main() {
-    let wrapped = {||wrapper3(chan::chan_t)};
+    let wrapped = {|&:|wrapper3(chan::chan_t)};
     wrapped();
 }