rust/tests/ui/coroutine/gen_fn.rs

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

9 lines
288 B
Rust
Raw Normal View History

//@ 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`
2023-11-29 22:13:35 +00:00
//[e2024]~^^ ERROR: gen blocks are experimental
fn main() {}