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