rust/tests/ui/borrowck/borrowck-init-in-fn-expr.rs
2023-01-11 09:32:08 +00:00

8 lines
121 B
Rust

fn main() {
let f = || -> isize {
let i: isize;
i //~ ERROR E0381
};
println!("{}", f());
}