We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a723b01 commit ee3a729Copy full SHA for ee3a729
compiler/rustc_error_codes/src/error_codes/E0795.md
@@ -3,7 +3,7 @@ Invalid argument for the `offset_of!` macro.
3
Erroneous code example:
4
5
```compile_fail,E0795
6
-#![feature(offset_of)]
+#![feature(offset_of, offset_of_enum)]
7
8
let x = std::mem::offset_of!(Option<u8>, Some);
9
```
@@ -16,7 +16,7 @@ The offset of the contained `u8` in the `Option<u8>` can be found by specifying
16
the field name `0`:
17
18
19
20
21
let x: usize = std::mem::offset_of!(Option<u8>, Some.0);
22
0 commit comments