2023-10-19 21:46:28 +00:00
|
|
|
#![feature(coroutines)]
|
2018-02-09 09:48:54 +01:00
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
let x = (|_| {},);
|
|
|
|
|
|
2024-04-11 13:15:34 +00:00
|
|
|
#[coroutine] || {
|
2018-02-09 09:48:54 +01:00
|
|
|
let x = x;
|
|
|
|
|
|
2023-10-19 21:46:28 +00:00
|
|
|
x.0({ //~ ERROR borrow may still be in use when coroutine yields
|
2018-02-09 09:48:54 +01:00
|
|
|
yield;
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
}
|