rust/tests/ui/unsafe/unsafe-fn-assign-deref-ptr.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
107 B
Rust
Raw Normal View History

fn f(p: *mut u8) {
*p = 0; //~ ERROR dereference of raw pointer is unsafe
2012-08-02 08:30:05 +08:00
return;
2011-10-12 12:22:08 +08:00
}
fn main() {
}