summaryrefslogtreecommitdiffstats
path: root/src/test/ui/borrowck/borrowck-init-in-called-fn-expr.rs
blob: e6476b9c1bef797e6a4163b9212c0790ae5963e4 (plain)
1
2
3
4
5
6
7
fn main() {
    let j = || -> isize {
        let i: isize;
        i //~ ERROR E0381
    };
    j();
}