This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
b06d99b8a0
rust
/
tests
/
compile-fail
/
null_pointer_write.rs
4 lines
97 B
Rust
Raw
Normal View
History
Unescape
Escape
test more operations on dangling ZST pointers
2018-09-15 09:35:37 -05:00
fn
main
(
)
{
fix compile-fail ref files
2019-04-21 06:18:05 -05:00
unsafe
{
*
std
::
ptr
::
null_mut
(
)
=
0
i32
}
;
//~ ERROR invalid use of NULL pointer
test more operations on dangling ZST pointers
2018-09-15 09:35:37 -05:00
}
Reference in New Issue
Copy Permalink