1 pub static mut DROPPED: bool = false; 2 3 pub struct S { 4 _unsized: [u8] 5 } 6 7 impl Drop for S { drop(&mut self)8 fn drop(&mut self) { 9 unsafe { 10 DROPPED = true; 11 } 12 } 13 } 14