Sign in
◑
Theme
rust
/
rust
/
c1f7fa1a48a060b980cb45ffde00a9b0cddac7c1
/
.
/
tests
/
ui
/
mir
/
enum
/
single_with_repr_ok.rs
blob: b0ed2bad6608b4da808bbd0df0908076d9924cd1 [
file
]
//@ run-pass
//@ compile-flags: -C debug-assertions
#[
allow
(
dead_code
)]
#[
repr
(
u16
)]
enum
Single
{
A
}
fn
main
()
{
let
_val
:
Single
=
unsafe
{
std
::
mem
::
transmute
::<
u16
,
Single
>(
0
)
};
}