From 9cf1a485998401cde281b5922dcfced238d31b94 Mon Sep 17 00:00:00 2001 From: Joshua Liebow-Feeser Date: Thu, 2 Nov 2023 05:57:31 -0700 Subject: [PATCH] Update mod.rs --- library/core/src/mem/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/core/src/mem/mod.rs b/library/core/src/mem/mod.rs index cbbf23e289bba..70d74b5c459df 100644 --- a/library/core/src/mem/mod.rs +++ b/library/core/src/mem/mod.rs @@ -1328,7 +1328,6 @@ impl SizedTypeProperties for T {} /// ``` /// #![feature(offset_of)] /// -/// use std::mem; /// struct Wrapper(T, U); /// /// type A = Wrapper; @@ -1345,7 +1344,7 @@ impl SizedTypeProperties for T {} /// // Not necessarily identical even though `u8` and `U8` have the same layout! /// // assert!(mem::offset_of!(A, 1), mem::offset_of!(C, 1)); /// -/// struct Empty(PhantomData); +/// struct Empty(core::marker::PhantomData); /// /// // Not necessarily identical even though `PhantomData` always has the same layout! /// // assert!(mem::offset_of!(Empty, 0), mem::offset_of!(Empty, 0));