// option. This file may not be copied, modified, or distributed
// except according to those terms.
+#[derive(Copy)]
struct cat {
meow: extern "Rust" fn(),
}
-impl Copy for cat {}
-
fn meow() {
println!("meow")
}
}
}
+#[derive(Copy)]
struct KittyInfo {kitty: cat}
-impl Copy for KittyInfo {}
-
// Code compiles and runs successfully if we add a + before the first arg
fn nyan(kitty: cat, _kitty_info: KittyInfo) {
(kitty.meow)();