summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/min_const_fn/allow_raw_ptr_dereference_const_fn.rs
blob: d221157556085ceea53f1cd8c60d136a1850b71f (plain)
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() {}