mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 17:44:28 +00:00
12 lines
218 B
Rust
12 lines
218 B
Rust
//@ edition:2024
|
|
|
|
#![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() {}
|