Sign in
fuchsia
/
third_party
/
rust
/
1e5ec0a12c73efdd9a492fdc7ab661d90dc5bcf5
/
.
/
tests
/
ui
/
typeck
/
typeck-cast-pointer-to-float.rs
blob: 2af7a3cf245193fd861f5192edcad5e55eb4208a [
file
] [
log
] [
blame
]
fn
main
()
{
let
x
:
i16
=
22
;
((&
x
)
as
*
const
i16
)
as
f32
;
//~^ ERROR casting `*const i16` as `f32` is invalid
}