Skip to content

Commit

Permalink
alloc: #[allow(instantly_dangling_pointer)] for a test about dangli…
Browse files Browse the repository at this point in the history
…ng pointers
  • Loading branch information
GrigorenkoPV committed Aug 12, 2024
1 parent 3949157 commit ddf0d12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/alloc/tests/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use core::mem::MaybeUninit;
use core::ptr::NonNull;

#[test]
#[allow(instantly_dangling_pointer)]
fn uninitialized_zero_size_box() {
assert_eq!(
&*Box::<()>::new_uninit() as *const _,
Expand Down

0 comments on commit ddf0d12

Please sign in to comment.