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 let x = core::ptr::addr_of!(x);
10 core::ptr::drop_in_place(x.cast_mut());