diff options
| author | George Bateman <george.bateman16@gmail.com> | 2023-11-03 14:58:02 +0000 |
|---|---|---|
| committer | George Bateman <george.bateman16@gmail.com> | 2023-11-03 14:58:02 +0000 |
| commit | a723b01ae2d73a43efd445b054a65c75afa5fcba (patch) | |
| tree | d16839a2d4368057ecb86faa137191fd3578414f | |
| parent | 7c09b99ebb2e04b6f37ef30a9030e423438b182b (diff) | |
| download | rust-a723b01ae2d73a43efd445b054a65c75afa5fcba.tar.gz rust-a723b01ae2d73a43efd445b054a65c75afa5fcba.zip | |
cfg_attr offset_of_enum feature in doctest
| -rw-r--r-- | library/core/src/mem/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/core/src/mem/mod.rs b/library/core/src/mem/mod.rs index 5559e593f0b..913c446c078 100644 --- a/library/core/src/mem/mod.rs +++ b/library/core/src/mem/mod.rs @@ -1355,7 +1355,8 @@ impl<T> SizedTypeProperties for T {} /// # Examples /// /// ``` -/// #![feature(offset_of, offset_of_enum)] +/// #![feature(offset_of)] +/// # #![cfg_attr(not(bootstrap), feature(offset_of_enum))] /// /// use std::mem; /// #[repr(C)] |
