]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsafe-pointer-assignability.rs
Rollup merge of #106625 - Swatinem:ref/cov6, r=nagisa
[rust.git] / tests / 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 }