]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsafe-pointer-assignability.rs
Merge commit '0c89065b934397b62838fe3e4ef6f6352fc52daf' into libgccjit-codegen
[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 }