Passing a function g into another function f and verifying that g's preconditions hold when it is called in f. Invocation of h and declaration of other variables in f is supposed to make the verification harder (Example 10 from Specification and Verification of Closures)
This relies heavily on the ownership feature in Rust
https://github.com/FabianWolff/closure-examples/tree/master
g
into another functionf
and verifying thatg
's preconditions hold when it is called inf
. Invocation ofh
and declaration of other variables inf
is supposed to make the verification harder (Example 10 from Specification and Verification of Closures)Some
andNone
is unsupported