We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7b3231 commit a4b3916Copy full SHA for a4b3916
core/src/mem/mod.rs
@@ -1254,12 +1254,10 @@ impl<T> SizedTypeProperties for T {}
1254
///
1255
/// Nested field accesses may be used, but not array indexes.
1256
1257
-/// Enum variants may be traversed as if they were fields. Variants themselves do
+/// If the nightly-only feature `offset_of_enum` is enabled,
1258
+/// variants may be traversed as if they were fields. Variants themselves do
1259
/// not have an offset.
1260
-/// However, on stable only a single field name is supported, which blocks the use of
1261
-/// enum support.
1262
-///
1263
/// Visibility is respected - all types and fields must be visible to the call site:
1264
1265
/// ```
0 commit comments