blob: 51349ad3195649925c5277dc164d9e72a6166f6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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;
|