]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsafe-pointer-assignability.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / test / ui / unsafe-pointer-assignability.rs
1 // run-pass
2
3 fn f(x: *const isize) {
4     unsafe {
5         assert_eq!(*x, 3);
6     }
7 }
8
9 pub fn main() {
10     f(&3);
11 }