]>
Commit | Line | Data |
---|---|---|
ed00b5ec FG |
1 | // revisions: e2024 none |
2 | //[e2024] compile-flags: --edition 2024 -Zunstable-options | |
3 | ||
4 | gen fn foo() {} | |
5 | //[none]~^ ERROR: expected one of `#`, `async`, `const`, `default`, `extern`, `fn`, `pub`, `unsafe`, or `use`, found `gen` | |
4b012472 | 6 | //[e2024]~^^ ERROR: gen blocks are experimental |
ed00b5ec FG |
7 | |
8 | fn main() {} |