diff options
| author | Joshua Liebow-Feeser <joshlf@users.noreply.github.com> | 2023-11-02 05:57:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-02 05:57:31 -0700 |
| commit | 9cf1a485998401cde281b5922dcfced238d31b94 (patch) | |
| tree | 74bcb4e4b8abba435e9ea0335f0f23a239412da6 | |
| parent | ec7996df7c4225162f407098beef213ce53b1c76 (diff) | |
| download | rust-9cf1a485998401cde281b5922dcfced238d31b94.tar.gz rust-9cf1a485998401cde281b5922dcfced238d31b94.zip | |
Update mod.rs
| -rw-r--r-- | library/core/src/mem/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/mem/mod.rs b/library/core/src/mem/mod.rs index cbbf23e289b..70d74b5c459 100644 --- a/library/core/src/mem/mod.rs +++ b/library/core/src/mem/mod.rs @@ -1328,7 +1328,6 @@ impl<T> SizedTypeProperties for T {} /// ``` /// #![feature(offset_of)] /// -/// use std::mem; /// struct Wrapper<T, U>(T, U); /// /// type A = Wrapper<u8, u8>; @@ -1345,7 +1344,7 @@ impl<T> 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<T>(PhantomData<T>); +/// struct Empty<T>(core::marker::PhantomData<T>); /// /// // Not necessarily identical even though `PhantomData` always has the same layout! /// // assert!(mem::offset_of!(Empty<u8>, 0), mem::offset_of!(Empty<i8>, 0)); |
