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
139 B
Rust
Raw Normal View History

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