Make async gen fn an error
This commit is contained in:
parent
7c43784cb0
commit
f29b36d03e
5 changed files with 34 additions and 0 deletions
11
tests/ui/coroutine/async_gen_fn.rs
Normal file
11
tests/ui/coroutine/async_gen_fn.rs
Normal 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() {}
|
Loading…
Add table
Add a link
Reference in a new issue