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

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

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;
});
};
}