Skip to content

Commit

Permalink
Doing proof of contract
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Aug 20, 2024
1 parent f4233a2 commit 4d23445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/ptr/unique.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ mod verify {
}

// pub const fn as_non_null_ptr(self) -> NonNull<T>
#[kani::proof]
#[kani::proof_for_contract(Unique::as_non_null_ptr)]
pub fn check_as_non_null_ptr() {
let mut x : i32 = kani::any();
let xptr = &mut x;
Expand Down

0 comments on commit 4d23445

Please sign in to comment.