Skip to content

Commit

Permalink
forgot to copy paste test in
Browse files Browse the repository at this point in the history
  • Loading branch information
Matias Scharager committed Jun 28, 2024
1 parent b28f752 commit 34359f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/ui/function-contracts/mutating_ensures_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
// kani-flags: -Zfunction-contracts

#[kani::ensures(|_| {*_x += 1; true})]
fn unit(_x: &mut u32) {
}
fn unit(_x: &mut u32) {}

#[kani::proof_for_contract(id)]
fn harness() {
let mut x = kani::any();
unit(&mut x);
}

0 comments on commit 34359f5

Please sign in to comment.