rust/tests/ui/generator/borrow-in-tail-expr.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
139 B
Rust
Raw Normal View History

// run-pass
#![feature(generators)]
fn main() {
let _a = || {
yield;
let a = String::new();
a.len()
2017-07-15 19:28:42 +00:00
};
}