10 lines
149 B
Rust
10 lines
149 B
Rust
// -*- rust -*-
|
|
|
|
fn f(p: *u8) {
|
|
*p = 0u8; //~ ERROR dereference of unsafe pointer requires unsafe function or block
|
|
return;
|
|
}
|
|
|
|
fn main() {
|
|
}
|