summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unsafe-pointer-assignability.rs
blob: db822bb6a028350306858573cd67dd213198ca5e (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);
}