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.

12 lines
218 B
Rust
Raw Normal View History

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