Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
feature-gates
/
feature-gate-const_transmute.rs
blob: da532643d9457630088faef894324e6038542b11 [
file
] [
log
] [
blame
]
use
std
::
mem
;
#[
repr
(
transparent
)]
struct
Foo
(
u32
);
const
TRANSMUTED_U32
:
u32
=
unsafe
{
mem
::
transmute
(
Foo
(
3
))
};
//~^ ERROR `std::intrinsics::transmute` is not yet stable as a const fn
fn
main
()
{}