9 lines
298 B
Rust
9 lines
298 B
Rust
// revisions: e2024 none
|
|
//[e2024] compile-flags: --edition 2024 -Zunstable-options
|
|
|
|
gen fn foo() {}
|
|
//[none]~^ ERROR: expected one of `#`, `async`, `const`, `default`, `extern`, `fn`, `pub`, `unsafe`, or `use`, found `gen`
|
|
//[e2024]~^^ ERROR: `gen` functions are not yet implemented
|
|
|
|
fn main() {}
|