2024-09-11 18:22:37 -04:00
|
|
|
//@ edition:2024
|
|
|
|
|
|
|
|
|
|
#![feature(gen_blocks)]
|
|
|
|
|
|
|
|
|
|
const gen fn a() {}
|
|
|
|
|
//~^ ERROR functions cannot be both `const` and `gen`
|
2025-02-27 09:51:23 +00:00
|
|
|
//~^^ ERROR `gen` fn bodies are not allowed in constant functions
|
2024-09-11 18:22:37 -04:00
|
|
|
|
|
|
|
|
const async gen fn b() {}
|
|
|
|
|
//~^ ERROR functions cannot be both `const` and `async gen`
|
2025-02-27 09:51:23 +00:00
|
|
|
//~^^ ERROR `async gen` fn bodies are not allowed in constant functions
|
2024-09-11 18:22:37 -04:00
|
|
|
|
|
|
|
|
fn main() {}
|