diff --git a/library/core/src/ptr/mod.rs b/library/core/src/ptr/mod.rs index f349259582447..aedab87449ff5 100644 --- a/library/core/src/ptr/mod.rs +++ b/library/core/src/ptr/mod.rs @@ -1620,6 +1620,8 @@ pub const unsafe fn replace(dst: *mut T, src: T) -> T { /// /// Note that even if `T` has size `0`, the pointer must be properly aligned. /// +/// Care must be taken around [ownership of the returned value](#ownership-of-the-returned-value). +/// /// # Examples /// /// Basic usage: