rust/tests/ui/coroutine/issue-52304.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
255 B
Rust
Raw Normal View History

//@ check-pass
//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
2023-10-19 21:46:28 +00:00
#![feature(coroutines, coroutine_trait)]
2023-10-19 16:06:43 +00:00
use std::ops::Coroutine;
2023-10-19 16:06:43 +00:00
pub fn example() -> impl Coroutine {
#[coroutine]
|| yield &1
}
fn main() {}