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

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

12 lines
152 B
Rust
Raw Normal View History

// check-pass
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 {
|| yield &1
}
fn main() {}