rust/tests/ui/coroutine/issue-48048.rs

14 lines
203 B
Rust
Raw Normal View History

2023-10-19 16:46:28 -05:00
#![feature(coroutines)]
fn main() {
let x = (|_| {},);
|| {
let x = x;
2023-10-19 16:46:28 -05:00
x.0({ //~ ERROR borrow may still be in use when coroutine yields
yield;
});
};
}