]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/ptr/non_null.rs
Rollup merge of #94657 - fee1-dead:const_slice_index, r=oli-obk
[rust.git] / library / core / src / ptr / non_null.rs
index 897609410dac4b5ef8165974d52002ae748d59e4..c744ad5dd2deb002d5b2001a6a0e02339c61dbb4 100644 (file)
@@ -643,7 +643,8 @@ pub const fn as_mut_ptr(self) -> *mut T {
 }
 
 #[stable(feature = "nonnull", since = "1.25.0")]
-impl<T: ?Sized> Clone for NonNull<T> {
+#[rustc_const_unstable(feature = "const_clone", issue = "91805")]
+impl<T: ?Sized> const Clone for NonNull<T> {
     #[inline]
     fn clone(&self) -> Self {
         *self