]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/empty-tag.rs
rollup merge of #20554: huonw/mut-pattern
[rust.git] / src / test / run-pass / empty-tag.rs
index e5d11ac1adb2aeebfe2863c9be7701c1c20af482..d9201746440854f124d23df14fe344a699f87527 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deriving(Show)]
+#[derive(Show)]
 enum chan { chan_t, }
 
 impl Copy for chan {}
@@ -25,6 +25,6 @@ fn wrapper3(i: chan) {
 }
 
 pub fn main() {
-    let wrapped = {||wrapper3(chan::chan_t)};
+    let wrapped = {|&:|wrapper3(chan::chan_t)};
     wrapped();
 }