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.
1 parent 9e78ce0 commit fc3ecb2Copy full SHA for fc3ecb2
src/test/ui/generator/issue-69017.rs
@@ -0,0 +1,16 @@
1
+// This issue reproduces an ICE on compile
2
+// Fails on 2020-02-08 nightly
3
+// regressed commit: https://github.com/rust-lang/rust/commit/f8fd4624474a68bd26694eff3536b9f3a127b2d3
4
+//
5
+// check-pass
6
+
7
+#![feature(generator_trait)]
8
+#![feature(generators)]
9
10
+use std::ops::Generator;
11
12
+fn gen() -> impl Generator<usize> {
13
+ |_: usize| {
14
+ println!("-> {}", yield);
15
+ }
16
+}
0 commit comments