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