Sign in
fuchsia
/
third_party
/
rust
/
3c2fd1a72d2e8cc80b354b4d2dd7931a7afe1b02
/
.
/
src
/
test
/
ui
/
consts
/
const-nullary-univariant-enum.rs
blob: 51349ad3195649925c5277dc164d9e72a6166f6e [
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
;