Skip to content

Commit

Permalink
add issue 69017 test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissimpkins committed Feb 10, 2020
1 parent 9e78ce0 commit fc3ecb2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/ui/generator/issue-69017.rs
@@ -0,0 +1,16 @@
// This issue reproduces an ICE on compile
// Fails on 2020-02-08 nightly
// regressed commit: https://github.com/rust-lang/rust/commit/f8fd4624474a68bd26694eff3536b9f3a127b2d3
//
// check-pass

#![feature(generator_trait)]
#![feature(generators)]

use std::ops::Generator;

fn gen() -> impl Generator<usize> {
|_: usize| {
println!("-> {}", yield);
}
}

0 comments on commit fc3ecb2

Please sign in to comment.