cfg_attr offset_of_enum feature in doctest
This commit is contained in:
parent
7c09b99ebb
commit
a723b01ae2
@ -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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user