os-rust/tests/ui/coroutine/borrow-in-tail-expr.rs

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

12 lines
140 B
Rust
Raw Normal View History

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