]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/issue-52304.rs
Rollup merge of #95376 - WaffleLapkin:drain_keep_rest, r=dtolnay
[rust.git] / src / test / ui / generator / issue-52304.rs
1 // check-pass
2
3 #![feature(generators, generator_trait)]
4
5 use std::ops::Generator;
6
7 pub fn example() -> impl Generator {
8     || yield &1
9 }
10
11 fn main() {}