2022-07-21 17:08:41 +09:00
|
|
|
//@ check-pass
|
2024-12-25 01:27:21 +00:00
|
|
|
//@ revisions: current next
|
|
|
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
2022-07-21 17:08:41 +09:00
|
|
|
|
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 {
|
2024-04-11 13:15:34 +00:00
|
|
|
#[coroutine]
|
2022-07-21 17:08:41 +09:00
|
|
|
|| yield &1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|