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

#![feature(coroutines, coroutine_trait)]

use std::ops::Coroutine;

pub fn example() -> impl Coroutine {
    #[coroutine]
    || yield &1
}

fn main() {}