mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 01:24:03 +00:00
13 lines
425 B
Rust
13 lines
425 B
Rust
//@ revisions: e2015 mid e2024
|
|
//@[e2015] edition: 2015
|
|
//@[mid] edition: 2018..2024
|
|
//@[e2024] edition: 2024
|
|
|
|
async gen fn foo() {}
|
|
//[e2015]~^ ERROR: `async fn` is not permitted in Rust 2015
|
|
//[e2015]~| ERROR: expected one of `extern`, `fn`, `safe`, or `unsafe`, found `gen`
|
|
//[mid]~^^^ ERROR: expected one of `extern`, `fn`, `safe`, or `unsafe`, found `gen`
|
|
//[e2024]~^^^^ ERROR: gen blocks are experimental
|
|
|
|
fn main() {}
|