rust/tests/ui/coroutine/auxiliary/xcrate-reachable.rs
2023-10-20 21:14:02 +00:00

15 lines
212 B
Rust

#![feature(coroutines, coroutine_trait)]
use std::ops::Coroutine;
fn msg() -> u32 {
0
}
pub fn foo() -> impl Coroutine<(), Yield = (), Return = u32> {
|| {
yield;
return msg();
}
}