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 1d1cbf7 commit b28f752
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/ui/function-contracts/mutating_ensures_error.rs
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
// Copyright Kani Contributors
// SPDX-License-Identifier: Apache-2.0 OR MIT
// kani-flags: -Zfunction-contracts

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

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

0 comments on commit b28f752

Please sign in to comment.