blob: 64385479cbf5723c2b3b548a76d3d7cab3e63990 [file] [log] [blame]
//@ run-pass
#[derive(Copy, Clone)]
enum Foo {
Bar = 0xDEADBEE
}
static X: Foo = Foo::Bar;
pub fn main() {
assert_eq!((X as usize), 0xDEADBEE);
assert_eq!((Y as usize), 0xDEADBEE);
}
static Y: Foo = Foo::Bar;