1
Fork 0

Make async gen fn an error

This commit is contained in:
Eric Holk 2023-11-29 16:59:06 -08:00
parent 7c43784cb0
commit f29b36d03e
No known key found for this signature in database
GPG key ID: 8EA6B43ED4CE0911
5 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,11 @@
// edition: 2024
// compile-flags: -Zunstable-options
#![feature(gen_blocks)]
// async generators are not yet supported, so this test makes sure they make some kind of reasonable
// error.
async gen fn foo() {}
//~^ `async gen` functions are not supported
fn main() {}