summary refs log tree commit diff
path: root/src/test/compile-fail/liveness-init-in-fn-expr.rs
blob: ebd128905d85ad8d035a0f5906cfc90274a31608 (plain)
1
2
3
4
5
6
7
fn main() {
    let f = fn@() -> int {
        let i: int;
        return i; //~ ERROR use of possibly uninitialized variable: `i`
    };
    log(error, f());
}