We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shallow borrows are not yet supported by Prusti. These appear when verifying code containing match guards on references:
use prusti_contracts::*; struct Wrapper { x: i32 } fn test(t: &Wrapper) { match t { Wrapper{ x } if x % 2 == 0 => {}, Wrapper{ x } => {} } }
Error:
[Prusti: unsupported feature] unsupported creation of shallow borrows (implicitly created when lowering matches)
This limitation is also mentioned in #543 in the test tests_old/verify/fail/simple-specs/order-of-branches.rs.
tests_old/verify/fail/simple-specs/order-of-branches.rs
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Shallow borrows are not yet supported by Prusti. These appear when verifying code containing match guards on references:
Error:
This limitation is also mentioned in #543 in the test
tests_old/verify/fail/simple-specs/order-of-branches.rs
.The text was updated successfully, but these errors were encountered: