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

7 lines
113 B
Rust
Raw Normal View History

fn f() -> int {
let x: int;
ret x; //! ERROR use of possibly uninitialized variable: `x`
}
fn main() { f(); }