aef0f4024a
And suggest adding the `#[coroutine]` to the closure
13 lines
170 B
Rust
13 lines
170 B
Rust
//@ check-pass
|
|
|
|
#![feature(coroutines, coroutine_trait)]
|
|
|
|
use std::ops::Coroutine;
|
|
|
|
pub fn example() -> impl Coroutine {
|
|
#[coroutine]
|
|
|| yield &1
|
|
}
|
|
|
|
fn main() {}
|