Skip to content

Commit a723b01

Browse files
committed
cfg_attr offset_of_enum feature in doctest
1 parent 7c09b99 commit a723b01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/core/src/mem/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,8 @@ impl<T> SizedTypeProperties for T {}
13551355
/// # Examples
13561356
///
13571357
/// ```
1358-
/// #![feature(offset_of, offset_of_enum)]
1358+
/// #![feature(offset_of)]
1359+
/// # #![cfg_attr(not(bootstrap), feature(offset_of_enum))]
13591360
///
13601361
/// use std::mem;
13611362
/// #[repr(C)]

0 commit comments

Comments
 (0)