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