We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b234477 + 5249183 commit 4f65b2cCopy full SHA for 4f65b2c
src/test/ui/generator/issue-52304.rs
@@ -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