diff options
| author | George Bateman <george.bateman16@gmail.com> | 2024-07-29 17:50:12 +0100 |
|---|---|---|
| committer | George Bateman <george.bateman16@gmail.com> | 2024-07-29 17:50:12 +0100 |
| commit | 23f46e5b9944f35d2726d583f18d8e387f1556f4 (patch) | |
| tree | 969330e38762c33a54c820b273703566dacaaa8c /compiler/rustc_error_codes/src | |
| parent | 4db3d12e6f395babed53dee1d209a5c8699a5ae6 (diff) | |
| download | rust-23f46e5b9944f35d2726d583f18d8e387f1556f4.tar.gz rust-23f46e5b9944f35d2726d583f18d8e387f1556f4.zip | |
Stabilize offset_of_nested
Diffstat (limited to 'compiler/rustc_error_codes/src')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0795.md | 4 |
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 ad77d72c913..69e61f7738f 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_enum, offset_of_nested)] +#![feature(offset_of_enum)] 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_enum, offset_of_nested)] +#![feature(offset_of_enum)] let x: usize = std::mem::offset_of!(Option<u8>, Some.0); ``` |
