Add regression test for #52304

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
Yuki Okushi 2022-07-21 17:08:41 +09:00
parent 039a6ad1ca
commit 5249183480
No known key found for this signature in database
GPG Key ID: 379CEEFDD63E5DD7

View File

@ -0,0 +1,11 @@
// check-pass
#![feature(generators, generator_trait)]
use std::ops::Generator;
pub fn example() -> impl Generator {
|| yield &1
}
fn main() {}