1
Fork 0

Rollup merge of #99549 - JohnTitor:issue-52304, r=compiler-errors

Add regression test for #52304

Closes #52304
r? ```@compiler-errors```

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
Matthias Krüger 2022-07-21 18:42:08 +02:00 committed by GitHub
commit d425fe8fb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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() {}