summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/borrow-in-tail-expr.rs
blob: 540f5e3e1dd6bbb8c0a5817701f6b3b743d7a3d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass

#![feature(generators)]

fn main() {
    let _a = || {
        yield;
        let a = String::new();
        a.len()
    };
}