rust/src/test/ui/borrowck/borrowck-init-in-called-fn-expr.rs
2018-12-25 21:08:33 -07:00

8 lines
142 B
Rust

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