1 //! Test that drop_in_place mutably retags the entire place, even for a type that does not need
2 //! dropping, ensuring among other things that 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());