summary refs log tree commit diff
path: root/tests/ui/coroutine/issue-52304.rs
blob: fed3a5f19b3ac9a031caa7f4ba5d59872cc7d51b (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() {}