os-rust/tests/ui/coroutine/auxiliary/metadata-sufficient-for-layout.rs

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

13 lines
236 B
Rust
Raw Permalink Normal View History

//@ compile-flags: --emit metadata
2023-10-19 21:46:28 +00:00
#![feature(coroutines, coroutine_trait)]
use std::marker::Unpin;
2023-10-19 16:06:43 +00:00
use std::ops::Coroutine;
2023-10-19 16:06:43 +00:00
pub fn g() -> impl Coroutine<(), Yield = (), Return = ()> {
#[coroutine]
|| {
yield;
}
}