mirror of https://github.com/rust-lang/rust.git
8 lines
107 B
Rust
8 lines
107 B
Rust
|
fn f(p: *mut u8) {
|
||
|
*p = 0; //~ ERROR dereference of raw pointer is unsafe
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
}
|