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

ill-typed AIR code, when using reveal #1327

Open
zeldovich opened this issue Oct 30, 2024 · 0 comments
Open

ill-typed AIR code, when using reveal #1327

zeldovich opened this issue Oct 30, 2024 · 0 comments

Comments

@zeldovich
Copy link
Collaborator

The following code:

use vstd::prelude::*;

verus! {
    proof fn p() {
        assert(Seq::<int>::empty().to_multiset().len() == 0);
        reveal(Seq::to_multiset);
    }
}

crashes with:

thread '<unnamed>' panicked at rust_verify/src/verifier.rs:780:21:
internal error: generated ill-typed AIR code: error 'error 'use of undeclared variable fuel%vstd!seq_lib.impl&%0.to_multiset.' in expression 'fuel%vstd!seq_lib.impl&%0.to_multiset.'' in expression '(fuel_bool fuel%vstd!seq_lib.impl&%0.to_multiset.)'
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at rust_verify/src/verifier.rs:2110:29:
worker thread panicked
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