mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
9 lines
296 B
Rust
9 lines
296 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`, `safe`, `unsafe`, or `use`, found `gen`
|
|
//[e2024]~^^ ERROR: gen blocks are experimental
|
|
|
|
fn main() {}
|