Sign in
rust
/
rust
/
97b1c314892ef4497c0ce5656daa3a54c4e052d3
/
.
/
src
/
tools
/
miri
/
tests
/
fail
/
dangling_pointers
/
null_pointer_write.rs
blob: 61f5ef572cf3c9d125f65fdffee152bd506f7622 [
file
]
#[
allow
(
deref_nullptr
)]
fn
main
()
{
unsafe
{
*
std
::
ptr
::
null_mut
()
=
0i32
};
//~ ERROR: null pointer
}