unsafe fn not_allowed(ptr: &UnsafeCell) -> &mut T { let t = ptr as *const UnsafeCell as *mut T; // This is undefined behavior, because the `*mut T` pointer // was not obtained through `.get()` nor `.raw_get()`: unsafe { &mut *t } }