#![allow(unused_variables)] fn main() { let x = Box::new(5); let mut y = Box::new(10); let yp: *const i32 = &*y; y.clone_from(&x); assert_eq!(x, y); assert_eq!(yp, &* y); }