Skip to content

Commit e44326e

Browse files
authored
Rollup merge of rust-lang#99549 - JohnTitor:issue-52304, r=compiler-errors
Add regression test for rust-lang#52304 Closes rust-lang#52304 r? ``@compiler-errors`` Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2 parents ec8f0dd + 5249183 commit e44326e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/test/ui/generator/issue-52304.rs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// check-pass
2+
3+
#![feature(generators, generator_trait)]
4+
5+
use std::ops::Generator;
6+
7+
pub fn example() -> impl Generator {
8+
|| yield &1
9+
}
10+
11+
fn main() {}

0 commit comments

Comments
 (0)