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 16:46:28 -05:00
#![feature(coroutines, coroutine_trait)]
2023-10-19 11:06:43 -05:00
use std::ops::Coroutine;
2023-10-19 11:06:43 -05:00
pub fn example() -> impl Coroutine {
|| yield &1
}
fn main() {}