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

verusfmt errors on opens_invariants #91

Open
zeldovich opened this issue Sep 21, 2024 · 0 comments
Open

verusfmt errors on opens_invariants #91

zeldovich opened this issue Sep 21, 2024 · 0 comments

Comments

@zeldovich
Copy link

The following piece of Verus code:

vstd::prelude::verus! {
    proof fn f() opens_invariants [ 123u8 ] {}
}

compiles with the latest version of verus just fine, but the latest verusfmt reports:

Error:   × Failed to parse
   ╭─[parse2.rs:1:1]
 1 │ vstd::prelude::verus! {
 2 │     proof fn f() opens_invariants [ 123u8 ] {}
   ·                                   ┬
   ·                                   ╰── here
 3 │ }
   ╰────
  help: Expected one of: COMMENT, opens_invariants_mode
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