mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 20:17:50 +00:00
15 lines
255 B
Rust
15 lines
255 B
Rust
//@ 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() {}
|