Skip to content

Commit

Permalink
fix check_cast harness
Browse files Browse the repository at this point in the history
  • Loading branch information
carolynzech committed Sep 17, 2024
1 parent 149f6dd commit 4c2cbaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/ptr/unique.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ mod verify {
}

// pub const fn cast<U>(self) -> Unique<U>
#[kani::proof_for_contract(Unique::cast<U>)]
pub fn check_cast<U>() {
#[kani::proof]
pub fn check_cast() {
let mut x : i32 = kani::any();
let xptr = &mut x;
unsafe {
Expand Down

0 comments on commit 4c2cbaa

Please sign in to comment.