]> 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 9138dd50defa06146503c5691decd12b78a07ba0..8000ce73bd42fcc2db36b8ef1809c2a96726260d 100644 (file)
@@ -105,7 +105,7 @@ fn add(self, _: B0) -> Self::Output {
 impl<U: Unsigned> Add<U> for UTerm {
     type Output = U;
     fn add(self, _: U) -> Self::Output {
-        unsafe { ::std::mem::uninitialized() }
+        unimplemented!()
     }
 }
 
@@ -136,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!()
     }
 }