Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
src
/
tools
/
miri
/
tests
/
fail
/
function_pointers
/
deref_fn_ptr.rs
blob: 3510f41361a0e49124b96103eb0cb057bd539566 [
file
] [
log
] [
blame
]
fn
f
()
{}
fn
main
()
{
let
x
:
u8
=
unsafe
{
*
std
::
mem
::
transmute
::<
fn
(),
*
const
u8
>(
f
)
//~ ERROR: contains a function
};
panic
!(
"this should never print: {}"
,
x
);
}