struct S { v: i32 } fn main() { let s = std::rc::Rc::new(S{v:666}); let r1 = s.clone(); let r2 = s.clone(); r2.v = 0; println!("{} {}", r1.v, r2.v) }