You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requested feature: Currently loop contracts implementation in #3151 doesn't support loop contracts in closures and coroutines. We want to allow loop contracts be correctly applied in closures and coroutines.
Use case:
Link to relevant documentation (Rust reference, Nomicon, RFC): #3167
Test case:
fnmain(){letmut x:u8 = 11;letmut res = ||->u8{#[kani::loop_invariant(x >= 2)]while x > 2{
x = x - 1;}
x
};assert!(res() == 2);}
The text was updated successfully, but these errors were encountered:
Requested feature: Currently loop contracts implementation in #3151 doesn't support loop contracts in closures and coroutines. We want to allow loop contracts be correctly applied in closures and coroutines.
Use case:
Link to relevant documentation (Rust reference, Nomicon, RFC): #3167
Test case:
The text was updated successfully, but these errors were encountered: