summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/issue-52304.rs
blob: 3e9de765b12b2a0def675108dbb572287b76f1e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// check-pass

#![feature(generators, generator_trait)]

use std::ops::Generator;

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

fn main() {}