add test for #5238

This commit is contained in:
Matthias Krüger 2020-02-28 22:00:20 +01:00
parent 610bceae71
commit 1e29b36e4e

View File

@ -0,0 +1,9 @@
// Regression test for #5238 / https://github.com/rust-lang/rust/pull/69562
#![feature(generators, generator_trait)]
fn main() {
let _ = || {
yield;
};
}