Skip to content

Commit

Permalink
Update mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlf committed Nov 2, 2023
1 parent 9cf1a48 commit 2cc92e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/core/src/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down

0 comments on commit 2cc92e6

Please sign in to comment.