summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/borrowck-init-in-fn-expr.rs
blob: 7eb204a0d167268234f30cb0ccc674b240cc605d (plain)
1
2
3
4
5
6
7
fn main() {
    let f  = || -> isize {
        let i: isize;
        i //~ ERROR E0381
    };
    println!("{}", f());
}