about summary refs log tree commit diff
path: root/compiler/rustc_error_codes
diff options
context:
space:
mode:
authorGeorge Bateman <george.bateman16@gmail.com>2023-12-05 22:15:26 +0000
committerGeorge Bateman <george.bateman16@gmail.com>2024-01-19 20:38:51 +0000
commit615946db4fc812bff3bb015dfe860c10da4b20c1 (patch)
treeb7faa4ea43db889e48e48cad167151ff3ee836af /compiler/rustc_error_codes
parent88189a71e4e4376eea82ac61db6a539612eb200a (diff)
downloadrust-615946db4fc812bff3bb015dfe860c10da4b20c1.tar.gz
rust-615946db4fc812bff3bb015dfe860c10da4b20c1.zip
Stabilize simple offset_of
Diffstat (limited to 'compiler/rustc_error_codes')
-rw-r--r--compiler/rustc_error_codes/src/error_codes/E0795.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0795.md b/compiler/rustc_error_codes/src/error_codes/E0795.md
index 20f51441c29..ad77d72c913 100644
--- a/compiler/rustc_error_codes/src/error_codes/E0795.md
+++ b/compiler/rustc_error_codes/src/error_codes/E0795.md
@@ -3,7 +3,7 @@ Invalid argument for the `offset_of!` macro.
 Erroneous code example:
 
 ```compile_fail,E0795
-#![feature(offset_of, offset_of_enum)]
+#![feature(offset_of_enum, offset_of_nested)]
 
 let x = std::mem::offset_of!(Option<u8>, Some);
 ```
@@ -16,7 +16,7 @@ The offset of the contained `u8` in the `Option<u8>` can be found by specifying
 the field name `0`:
 
 ```
-#![feature(offset_of, offset_of_enum)]
+#![feature(offset_of_enum, offset_of_nested)]
 
 let x: usize = std::mem::offset_of!(Option<u8>, Some.0);
 ```