summary refs log tree commit diff
path: root/tests/ui/coroutine/issue-52304.rs
blob: 01ed181ab1dcb823367cb9eb96c9e9f4998fe824 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ check-pass

#![feature(coroutines, coroutine_trait)]

use std::ops::Coroutine;

pub fn example() -> impl Coroutine {
    || yield &1
}

fn main() {}