blob: 1f2f7ee1e1919dd52a2310f25d93a3801d3c937d [file] [log] [blame]
#![feature(offset_of_nested)]
use std::mem::offset_of;
enum Alpha {
One(u8),
Two(u8),
}
fn main() {
offset_of!(Alpha::One, 0); //~ ERROR expected type, found variant `Alpha::One`
offset_of!(Alpha, One); //~ ERROR `One` is an enum variant; expected field at end of `offset_of`
//~| ERROR using enums in offset_of is experimental
offset_of!(Alpha, Two.0); //~ ERROR using enums in offset_of is experimental
}