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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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() {}