1 //! Test that drop_in_place mutably retags the entire place,
2 //! ensuring it is writeable
4 //@error-pattern: /retag .* for Unique permission .* only grants SharedReadOnly permission/
9 impl Drop for HasDrop {
15 let x = (0u8, HasDrop);
16 let x = core::ptr::addr_of!(x);
17 core::ptr::drop_in_place(x.cast_mut());