1 2 3 4 5 6 7 8 9
// check-pass use std::ptr; const fn test_fn(x: *const i32) { let x2 = unsafe { ptr::addr_of!(*x) }; } fn main() {}