]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/borrow-in-tail-expr.rs
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / generator / borrow-in-tail-expr.rs
1 // run-pass
2
3 #![feature(generators)]
4
5 fn main() {
6     let _a = || {
7         yield;
8         let a = String::new();
9         a.len()
10     };
11 }