Skip to content

Commit

Permalink
TODO: if-let
Browse files Browse the repository at this point in the history
  • Loading branch information
parno committed Dec 18, 2023
1 parent 6600daa commit 4d878b2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions examples/wip.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
verus! {

// TODO: Need to add support for if-let https://doc.rust-lang.org/reference/expressions/if-expr.html
fn test() {
loop
invariant
x > 0,
{
x += 1;
if let Result::Ok(val) = res {
0
} else {
1
}

}

} // verus!
Expand Down

0 comments on commit 4d878b2

Please sign in to comment.