X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Frun-pass%2Fempty-tag.rs;h=35c394cf535a579d538372e801a58758f6d1b789;hb=bff462302b3e0a8f68c14cad2806c7ff5005364e;hp=58eb4ce2f7a559a4814c0247980937afed6a59cb;hpb=340f3fd7a909b30509a63916df06f2b885d113f7;p=rust.git diff --git a/src/test/run-pass/empty-tag.rs b/src/test/run-pass/empty-tag.rs index 58eb4ce2f7a..35c394cf535 100644 --- a/src/test/run-pass/empty-tag.rs +++ b/src/test/run-pass/empty-tag.rs @@ -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(); }