]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/issue-69017.rs
Auto merge of #102655 - joboet:windows_tls_opt, r=ChrisDenton
[rust.git] / src / test / ui / generator / issue-69017.rs
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 }
17
18 fn main() {}