generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 141
Closed
Labels
[C] BugThis is a bug. Something isn't working.This is a bug. Something isn't working.
Description
I tried this code:
#[kani::requires(true)]
#[inline]
const unsafe fn dummy<T>(arg: *const T) -> T {
std::ptr::read(arg)
}
#[kani::proof_for_contract(dummy)]
fn check() {
unsafe { dummy(&kani::any::<u8>()) };
}using the following command line invocation:
kani -Z function-contracts dummy.rs
with Kani version:
I expected to see this happen: verification succeed
Instead, this happened: Kani failed to compile
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[C] BugThis is a bug. Something isn't working.This is a bug. Something isn't working.