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

6 lines
100 B
Rust
Raw Normal View History

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