3 #![feature(ptr_internals, test)]
6 use test::black_box as b; // prevent promotion of the argument and const-propagation of the result
11 const PTR: *mut u32 = Unique::dangling().as_ptr();
14 // Be super-extra paranoid and cast the fn items to fn pointers before blackboxing them.
15 assert_eq!(PTR, b::<fn() -> _>(Unique::<u32>::dangling)().as_ptr());