diff --git a/core/src/ptr/non_null.rs b/core/src/ptr/non_null.rs index ad24e50aa15d5..b69f8a4b9d3ea 100644 --- a/core/src/ptr/non_null.rs +++ b/core/src/ptr/non_null.rs @@ -251,7 +251,7 @@ impl NonNull { #[unstable(feature = "ptr_metadata", issue = "81513")] #[inline] pub const fn from_raw_parts( - data_pointer: NonNull<()>, + data_pointer: NonNull, metadata: ::Metadata, ) -> NonNull { // SAFETY: The result of `ptr::from::raw_parts_mut` is non-null because `data_pointer` is.