rust/tests/ui/generator/borrow-in-tail-expr.rs
2023-01-11 09:32:08 +00:00

12 lines
139 B
Rust

// run-pass
#![feature(generators)]
fn main() {
let _a = || {
yield;
let a = String::new();
a.len()
};
}