cfg_attr offset_of_enum feature in doctest

This commit is contained in:
George Bateman 2023-11-03 14:58:02 +00:00
parent 7c09b99ebb
commit a723b01ae2
No known key found for this signature in database
GPG Key ID: C417AA9C4039EFCF
1 changed files with 2 additions and 1 deletions

View File

@ -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)]