Skip to content

Commit fc3ecb2

Browse files
committed
add issue 69017 test
1 parent 9e78ce0 commit fc3ecb2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

+16
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)