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 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))]