diff options
| author | Joshua Liebow-Feeser <joshlf@users.noreply.github.com> | 2023-11-02 06:45:32 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-02 06:45:32 -0700 |
| commit | 2cc92e666faacbeeaaf5b6e92b0a07566ac4ad69 (patch) | |
| tree | 063ac4335a309c078aeadbe82f631064c87d76d5 | |
| parent | 9cf1a485998401cde281b5922dcfced238d31b94 (diff) | |
| download | rust-2cc92e666faacbeeaaf5b6e92b0a07566ac4ad69.tar.gz rust-2cc92e666faacbeeaaf5b6e92b0a07566ac4ad69.zip | |
Update mod.rs
| -rw-r--r-- | library/core/src/mem/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/core/src/mem/mod.rs b/library/core/src/mem/mod.rs index 70d74b5c459..c88d71f8e54 100644 --- a/library/core/src/mem/mod.rs +++ b/library/core/src/mem/mod.rs @@ -1385,7 +1385,9 @@ impl<T> SizedTypeProperties for T {} /// B { one: u8, two: u16 }, /// } /// +/// # #[cfg(not(bootstrap))] /// assert_eq!(mem::offset_of!(Enum, A.0), 1); +/// # #[cfg(not(bootstrap))] /// assert_eq!(mem::offset_of!(Enum, B.two), 2); /// /// # #[cfg(not(bootstrap))] |
