rust/src/test/compile-fail/liveness-return.rs
2012-08-01 19:16:06 -07:00

7 lines
116 B
Rust

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