module 0x8675309::M { struct S has drop { f: u64, g: u64 } fun id(r: &T): &T { r } fun id_mut(r: &mut T): &mut T { r } fun t1(s: &mut S) { let f = &s.f; *f; s.g = 0; *s = S { f: 0, g: 0 }; let f = &mut s.f; *f; s.g = 0; *s = S { f: 0, g: 0 }; let f = id(&s.f); *f; s.g = 0; *s = S { f: 0, g: 0 }; let f = id_mut(&mut s.f); *f; s.g = 0; *s = S { f: 0, g: 0 }; } }