mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
10 lines
124 B
Rust
10 lines
124 B
Rust
//@ check-pass
|
|
|
|
use std::ptr;
|
|
|
|
const fn test_fn(x: *const i32) {
|
|
let x2 = unsafe { ptr::addr_of!(*x) };
|
|
}
|
|
|
|
fn main() {}
|