ptr: T
}
-#[derive(PartialEq,Eq)]
+#[derive(Copy, PartialEq, Eq)]
struct Bar;
-impl Copy for Bar {}
-
-#[derive(PartialEq,Eq)]
+#[derive(Copy, PartialEq, Eq)]
struct Bar1 {
f: int
}
-impl Copy for Bar1 {}
-
trait ToBar {
fn to_bar(&self) -> Bar;
fn to_val(&self) -> int;