mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
aeae085dc3
Contract variables can be declared in the `requires` clause and can be referenced both in `requires` and `ensures`, subject to usual borrow checking rules. This allows any setup common to both the `requires` and `ensures` clauses to only be done once.