blob: b9adeec3f402715be4383ceadb9aec2bc198e122 [file] [log] [blame]
//@ revisions: e2024 none
//@[e2024] edition: 2024
async gen fn foo() {}
//[none]~^ ERROR: `async fn` is not permitted in Rust 2015
//[none]~| ERROR: expected one of `extern`, `fn`, `safe`, or `unsafe`, found `gen`
//[e2024]~^^^ ERROR: gen blocks are experimental
fn main() {}