fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0670]: `async fn` is not permitted in Rust 2015 2 --> $DIR/async-block-2015.rs:1:1 3 | 4LL | async fn foo() { 5 | ^^^^^ to use `async fn`, switch to Rust 2018 or later 6 | 7 = help: pass `--edition 2021` to `rustc` 8 = note: for more on editions, read https://doc.rust-lang.org/edition-guide 9 10error: expected identifier, found keyword `let` 11 --> $DIR/async-block-2015.rs:11:9 12 | 13LL | let y = async { 14 | ----- `async` blocks are only allowed in Rust 2018 or later 15LL | let x = 42; 16 | ^^^ expected identifier, found keyword 17 | 18 = help: pass `--edition 2021` to `rustc` 19 = note: for more on editions, read https://doc.rust-lang.org/edition-guide 20 21error: expected identifier, found `42` 22 --> $DIR/async-block-2015.rs:19:9 23 | 24LL | let z = async { 25 | ----- `async` blocks are only allowed in Rust 2018 or later 26LL | 42 27 | ^^ expected identifier 28 | 29 = help: pass `--edition 2021` to `rustc` 30 = note: for more on editions, read https://doc.rust-lang.org/edition-guide 31 32error[E0422]: cannot find struct, variant or union type `async` in this scope 33 --> $DIR/async-block-2015.rs:7:13 34 | 35LL | let x = async {}; 36 | ^^^^^ `async` blocks are only allowed in Rust 2018 or later 37 38error: aborting due to 4 previous errors 39 40Some errors have detailed explanations: E0422, E0670. 41For more information about an error, try `rustc --explain E0422`.