]> git.lizzy.rs Git - rust.git/blobdiff - src/test/rustdoc/issue-52873.rs
Rollup merge of #69565 - RalfJung:assert, r=eddyb
[rust.git] / src / test / rustdoc / issue-52873.rs
index 653c004c04b231c2606ce5f879dca7d4fb0b8d4c..8000ce73bd42fcc2db36b8ef1809c2a96726260d 100644 (file)
@@ -105,8 +105,7 @@ fn add(self, _: B0) -> Self::Output {
 impl<U: Unsigned> Add<U> for UTerm {
     type Output = U;
     fn add(self, _: U) -> Self::Output {
-        #[allow(deprecated)]
-        unsafe { ::std::mem::uninitialized() }
+        unimplemented!()
     }
 }
 
@@ -137,7 +136,7 @@ impl<Ul: Unsigned, B: Bit, Ur: Unsigned> Mul<UInt<Ur, B>> for UInt<Ul, B0>
 {
     type Output = UInt<Prod<Ul, UInt<Ur, B>>, B0>;
     fn mul(self, _: UInt<Ur, B>) -> Self::Output {
-        unsafe { ::std::mem::uninitialized() }
+        unimplemented!()
     }
 }