]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/min_const_fn/allow_raw_ptr_dereference_const_fn.rs
Auto merge of #90757 - GuillaumeGomez:search-index-performance, r=camelid
[rust.git] / src / test / ui / consts / min_const_fn / allow_raw_ptr_dereference_const_fn.rs
1 // check-pass
2
3 use std::ptr;
4
5 const fn test_fn(x: *const i32) {
6     let x2 = unsafe { ptr::addr_of!(*x) };
7 }
8
9 fn main() {}