rust/src/test/compile-fail/return-uninit.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

10 lines
107 B
Rust

// error-pattern: precondition constraint
fn f() -> int {
let int x;
ret x;
}
fn main() {
f();
}