2022-07-21 03:08:41 -05:00
|
|
|
// check-pass
|
|
|
|
|
2023-10-19 16:46:28 -05:00
|
|
|
#![feature(coroutines, coroutine_trait)]
|
2022-07-21 03:08:41 -05:00
|
|
|
|
2023-10-19 11:06:43 -05:00
|
|
|
use std::ops::Coroutine;
|
2022-07-21 03:08:41 -05:00
|
|
|
|
2023-10-19 11:06:43 -05:00
|
|
|
pub fn example() -> impl Coroutine {
|
2022-07-21 03:08:41 -05:00
|
|
|
|| yield &1
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|