From a723b01ae2d73a43efd445b054a65c75afa5fcba Mon Sep 17 00:00:00 2001 From: George Bateman Date: Fri, 3 Nov 2023 14:58:02 +0000 Subject: [PATCH] cfg_attr offset_of_enum feature in doctest --- library/core/src/mem/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/core/src/mem/mod.rs b/library/core/src/mem/mod.rs index 5559e593f0bd..913c446c0782 100644 --- a/library/core/src/mem/mod.rs +++ b/library/core/src/mem/mod.rs @@ -1355,7 +1355,8 @@ impl 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)]