blob: 6958d199fbdb4b1c9da13f7275bf950098d4a3f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
error[E0573]: expected type, found variant `Alpha::One`
--> $DIR/offset-of-enum.rs:11:16
|
LL | offset_of!(Alpha::One, 0);
| ^^^^^^^^^^
| |
| not a type
| help: try using the variant's enum: `Alpha`
error[E0609]: no field `Two` on type `Alpha`
--> $DIR/offset-of-enum.rs:12:23
|
LL | offset_of!(Alpha, Two.0);
| ^^^
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0573, E0609.
For more information about an error, try `rustc --explain E0573`.
|