rust/src/test/compile-fail/while-expr.rs
Tim Chevalier 26e177a97a Enable typestate_check
Enable typestate checking (just for uninitialized vars) and un-XFAIL the
relevant tests for stage0.
2011-04-28 13:26:19 -07:00

8 lines
88 B
Rust

// error-pattern: precondition constraint
fn main() {
let bool x;
while(x) {
}
}