]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-init-in-fn-expr.rs
Rollup merge of #102500 - compiler-errors:parse-sess-cleanup, r=cjgillot
[rust.git] / src / test / ui / borrowck / borrowck-init-in-fn-expr.rs
1 fn main() {
2     let f  = || -> isize {
3         let i: isize;
4         i //~ ERROR E0381
5     };
6     println!("{}", f());
7 }