pub fn understand_copy_clone()
struct A; // 没用,自己实现Copy和Clone无法改变编译器默认行为 impl Clone for A { fn clone(&self) -> Self { println!("from Custom Copy: Clone"); *self } } impl Copy for A {} fn main(){ let a = A; let b = a; }