about summary refs log tree commit diff
path: root/tests/ui/coroutine/auxiliary/metadata-sufficient-for-layout.rs
blob: 8ecb8c0c09793e80791ba9ce8dcd2ef93d622229 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ compile-flags: --emit metadata
#![feature(coroutines, coroutine_trait)]

use std::marker::Unpin;
use std::ops::Coroutine;

pub fn g() -> impl Coroutine<(), Yield = (), Return = ()> {
    #[coroutine]
    || {
        yield;
    }
}