This website requires JavaScript.
Explore
Help
Sign In
dnrops
/
rust
mirror of
https://github.com/rust-lang/rust.git
Watch
1
Star
0
Fork
You've already forked rust
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
master
rust
/
tests
/
ui
/
unsafe
/
unsafe-fn-assign-deref-ptr.rs
8 lines
107 B
Rust
Raw
Permalink
Blame
History
fn
f
(
p
:
*
mut
u8
)
{
*
p
=
0
;
//~ ERROR dereference of raw pointer is unsafe
return
;
}
fn
main
(
)
{
}
Reference in New Issue
View Git Blame
Copy Permalink