Skip to content

Commit

Permalink
Rollup merge of #99549 - JohnTitor:issue-52304, r=compiler-errors
Browse files Browse the repository at this point in the history
Add regression test for #52304

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

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
matthiaskrgr authored Jul 21, 2022
2 parents 230b775 + 5249183 commit d425fe8
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 d425fe8

Please sign in to comment.