Skip to content
New issue

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

Unexpected error "Verus currently only supports casts from integer types" #1271

Open
jonhnet opened this issue Sep 19, 2024 · 0 comments
Open

Comments

@jonhnet
Copy link
Collaborator

jonhnet commented Sep 19, 2024

I have a pile of code that compiles and verifies fine. I modified a data structure to have a borrowed field and a lifetime parameter, and an apparently unrelated method in that struct now throws this error:

error: Verus currently only supports casts from integer types and `char` to integer types
   --> src/marshalling/VariableSizedElementSeq_v.rs:725:60
    |
725 |                     forall |ip, jp| 0 <= ip <= jp <= i ==> tbl[jp] as int <= tbl[ip] as int
    |                                

I have no idea how it has anything to do with the change I made.

Recording:
2024-09-19-09-19-54.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant