blob: 77dfe8391956fd444d596294a35019abc7c6fbcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//@ check-pass
//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
#![feature(coroutines, coroutine_trait)]
use std::ops::Coroutine;
pub fn example() -> impl Coroutine {
#[coroutine]
|| yield &1
}
fn main() {}
|