about summary refs log tree commit diff
path: root/tests/ui/unsafe/unsafe-fn-assign-deref-ptr.rs
blob: 91264e790c8db40e5e73277c5445b443c65b7d68 (plain)
1
2
3
4
5
6
7
fn f(p: *mut u8) {
    *p = 0; //~ ERROR dereference of raw pointer is unsafe
    return;
}

fn main() {
}