rust/src/test/compile-fail/return-uninit.rs

10 lines
107 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
// error-pattern: precondition constraint
fn f() -> int {
let int x;
ret x;
}
fn main() {
f();
}