rust/src/test/compile-fail/liveness-init-in-called-fn-expr.rs
2012-08-01 19:16:06 -07:00

8 lines
149 B
Rust

fn main() {
let j = fn@() -> int {
let i: int;
return i; //~ ERROR use of possibly uninitialized variable: `i`
};
j();
}