Skip to content

Commit

Permalink
Add regression test for rust-lang#52304
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
JohnTitor committed Jul 21, 2022
1 parent 039a6ad commit 5249183
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/ui/generator/issue-52304.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// check-pass

#![feature(generators, generator_trait)]

use std::ops::Generator;

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

fn main() {}

0 comments on commit 5249183

Please sign in to comment.