rust/tests/ui/coroutine/const_gen_fn.rs

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

13 lines
256 B
Rust
Raw Normal View History

2024-09-11 17:22:37 -05:00
//@ edition:2024
//@ compile-flags: -Zunstable-options
#![feature(gen_blocks)]
const gen fn a() {}
//~^ ERROR functions cannot be both `const` and `gen`
const async gen fn b() {}
//~^ ERROR functions cannot be both `const` and `async gen`
fn main() {}