We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74f08d0 commit a612af5Copy full SHA for a612af5
src/test/ui/consts/const-ptr-unique-rpass.rs
@@ -8,9 +8,9 @@ use test::black_box as b; // prevent promotion of the argument and const-propaga
8
use std::ptr::Unique;
9
10
11
-const PTR: *mut u32 = Unique::empty().as_ptr();
+const PTR: *mut u32 = Unique::dangling().as_ptr();
12
13
pub fn main() {
14
// Be super-extra paranoid and cast the fn items to fn pointers before blackboxing them.
15
- assert_eq!(PTR, b::<fn() -> _>(Unique::<u32>::empty)().as_ptr());
+ assert_eq!(PTR, b::<fn() -> _>(Unique::<u32>::dangling)().as_ptr());
16
}
0 commit comments