Skip to content

Commit 6070557

Browse files
committed
cfg_attr offset_of_enum feature in doctest
1 parent ca89480 commit 6070557

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/mem/mod.rs

Lines changed: 2 additions & 1 deletion
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)