Skip to content

Commit

Permalink
Rollup merge of rust-lang#99549 - JohnTitor:issue-52304, r=compiler-e…
Browse files Browse the repository at this point in the history
…rrors

Add regression test for rust-lang#52304

Closes rust-lang#52304
r? ````@compiler-errors````

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
Dylan-DPC authored Jul 21, 2022
2 parents b234477 + 5249183 commit 4f65b2c
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 4f65b2c

Please sign in to comment.