Skip to content

Commit 5e7ba89

Browse files
Update non_null.rs
1 parent 50521ab commit 5e7ba89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/ptr/non_null.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1829,7 +1829,7 @@ mod verify {
18291829
pub fn non_null_check_new() {
18301830
let mut x: i32 = kani::any();
18311831
let xptr = &mut x;
1832-
let maybe_null_ptr = if kani::any() { xptr as *mut i32 } else { null_mut() };
1832+
let maybe_null_ptr = if kani::any() { xptr as *mut i32 } else { null_mut() };
18331833
let _ = NonNull::new(maybe_null_ptr);
18341834
}
18351835

0 commit comments

Comments
 (0)