rust/tests/ui/generator/issue-52304.rs
2023-01-11 09:32:08 +00:00

12 lines
152 B
Rust

// check-pass
#![feature(generators, generator_trait)]
use std::ops::Generator;
pub fn example() -> impl Generator {
|| yield &1
}
fn main() {}