Open fpoli opened 11 months ago
The program
use prusti_contracts::*; #[pure] // <-- ERROR #[ensures="result > 0"] fn len(r: i32) -> i32 { 123 }
fails with
custom attribute panicked message: internal error: entered unreachable code
However, the correct behaviour is to point out that the postcondition should be #[ensures(...)] instead of #[ensures="..."].
#[ensures(...)]
#[ensures="..."]
The program
fails with
However, the correct behaviour is to point out that the postcondition should be
#[ensures(...)]
instead of#[ensures="..."]
.