]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsafe-pointer-assignability.rs
Rollup merge of #99479 - Enselic:import-can-be-without-id, r=camelid
[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 }