rust/src/test/run-pass/issue-933.rs
Tim Chevalier d242edb57b Handle predicates that recurse in a check() expression
typestate was using the enclosing function ID for the "this function
returns" constraint, which meant confusion and panic in the case
where a predicate p includes "check p()". Fixed it to use a fresh
ID.

Closes #933
2012-01-19 22:53:22 -08:00

3 lines
53 B
Rust

pure fn c() -> bool { check c(); true }
fn main() {}