rust/tests/ui/generator/issue-52304.rs

12 lines
152 B
Rust
Raw Normal View History

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