summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generator/auxiliary/metadata-sufficient-for-layout.rs
blob: 207c2735f8886f67bfba0f6037530c1729bba009 (plain)
1
2
3
4
5
6
7
8
9
10
11
// compile-flags: --emit metadata
#![feature(generators, generator_trait)]

use std::marker::Unpin;
use std::ops::Generator;

pub fn g() -> impl Generator<(), Yield = (), Return = ()> {
    || {
        yield;
    }
}