Skip to content

Commit ddf0d12

Browse files
committed
alloc: #[allow(instantly_dangling_pointer)] for a test about dangling pointers
1 parent 3949157 commit ddf0d12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/alloc/tests/boxed.rs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use core::mem::MaybeUninit;
44
use core::ptr::NonNull;
55

66
#[test]
7+
#[allow(instantly_dangling_pointer)]
78
fn uninitialized_zero_size_box() {
89
assert_eq!(
910
&*Box::<()>::new_uninit() as *const _,

0 commit comments

Comments
 (0)