X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Frustdoc%2Fissue-52873.rs;h=8000ce73bd42fcc2db36b8ef1809c2a96726260d;hb=fab54fc34ebabe2dc648ac3280b668a1d5456eda;hp=653c004c04b231c2606ce5f879dca7d4fb0b8d4c;hpb=baab1914ec9a9742776a8147780947b48fddf54d;p=rust.git diff --git a/src/test/rustdoc/issue-52873.rs b/src/test/rustdoc/issue-52873.rs index 653c004c04b..8000ce73bd4 100644 --- a/src/test/rustdoc/issue-52873.rs +++ b/src/test/rustdoc/issue-52873.rs @@ -105,8 +105,7 @@ fn add(self, _: B0) -> Self::Output { impl Add for UTerm { type Output = U; fn add(self, _: U) -> Self::Output { - #[allow(deprecated)] - unsafe { ::std::mem::uninitialized() } + unimplemented!() } } @@ -137,7 +136,7 @@ impl Mul> for UInt { type Output = UInt>, B0>; fn mul(self, _: UInt) -> Self::Output { - unsafe { ::std::mem::uninitialized() } + unimplemented!() } }