Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
tools
/
miri
/
tests
/
compile-fail
/
null_pointer_deref.rs
blob: 08ea63f58ff5974bb296a96288fe6452daa4531b [
file
] [
log
] [
blame
]
fn
main
()
{
let
x
:
i32
=
unsafe
{
*
std
::
ptr
::
null
()
};
//~ ERROR constant evaluation error: invalid use of NULL pointer
panic
!(
"this should never print: {}"
,
x
);
}