Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
consts
/
const-eval
/
transmute-const-promotion.rs
blob: 8bd1b341e6e1256460947d47c01523d1438aae8c [
file
] [
log
] [
blame
]
#![
feature
(
const_transmute
)]
use
std
::
mem
;
fn
main
()
{
let
x
:
&
'
static
u32
=
unsafe
{
&
mem
::
transmute
(
3.0f32
)
};
//~^ ERROR temporary value dropped while borrowed
}