about summary refs log tree commit diff
path: root/tests/ui/unsafe/unsafe-pointer-assignability.rs
blob: a715c845e903db7399057142ec625786624259c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ run-pass

fn f(x: *const isize) {
    unsafe {
        assert_eq!(*x, 3);
    }
}

pub fn main() {
    f(&3);
}