Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
feature-gates
/
feature-gate-const_transmute.rs
blob: 6a5bbec77fdb9a3272c90d42c8c74aa2ed5f784a [
file
] [
log
] [
blame
]
use
std
::
mem
;
#[
repr
(
transparent
)]
struct
Foo
(
u32
);
const
TRANSMUTED_U32
:
u32
=
unsafe
{
mem
::
transmute
(
Foo
(
3
))
};
//~^ ERROR The use of std::mem::transmute() is gated in constants
fn
main
()
{}