Files
rust/tests/ui/coroutine/async_gen_fn.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
272 B
Rust
Raw Normal View History

2023-11-29 16:59:06 -08:00
// 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() {}