2023-06-23 22:00:08 -05:00
|
|
|
error[E0670]: `async fn` is not permitted in Rust 2015
|
|
|
|
--> $DIR/edition-deny-async-fns-2015.rs:3:1
|
|
|
|
|
|
|
|
|
LL | async fn foo() {}
|
|
|
|
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
|
|
|
|
|
|
|
|
|
= help: pass `--edition 2021` to `rustc`
|
|
|
|
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
|
|
|
|
|
|
|
|
error[E0670]: `async fn` is not permitted in Rust 2015
|
|
|
|
--> $DIR/edition-deny-async-fns-2015.rs:5:12
|
|
|
|
|
|
|
|
|
LL | fn baz() { async fn foo() {} }
|
|
|
|
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
|
|
|
|
|
|
|
|
|
= help: pass `--edition 2021` to `rustc`
|
|
|
|
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
|
|
|
|
|
|
|
|
error[E0670]: `async fn` is not permitted in Rust 2015
|
|
|
|
--> $DIR/edition-deny-async-fns-2015.rs:7:1
|
|
|
|
|
|
|
|
|
LL | async fn async_baz() {
|
|
|
|
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
|
|
|
|
|
|
|
|
|
= help: pass `--edition 2021` to `rustc`
|
|
|
|
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
|
|
|
|
|
|
|
|
error[E0670]: `async fn` is not permitted in Rust 2015
|
|
|
|
--> $DIR/edition-deny-async-fns-2015.rs:8:5
|
|
|
|
|
|
|
|
|
LL | async fn bar() {}
|
|
|
|
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
|
|
|
|
|
|
|
|
|
= help: pass `--edition 2021` to `rustc`
|
|
|
|
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
|
|
|
|
|
|
|
|
error[E0670]: `async fn` is not permitted in Rust 2015
|
|
|
|
--> $DIR/edition-deny-async-fns-2015.rs:14:5
|
|
|
|
|
|
|
|
|
LL | async fn foo() {}
|
|
|
|
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
|
|
|
|
|
|
|
|
|
= help: pass `--edition 2021` to `rustc`
|
|
|
|
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
|
|
|
|
|
|
|
|
error[E0670]: `async fn` is not permitted in Rust 2015
|
|
|
|
--> $DIR/edition-deny-async-fns-2015.rs:18:5
|
|
|
|
|
|
|
|
|
LL | async fn foo() {}
|
|
|
|
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
|
|
|
|
|
|
|
|
|
= help: pass `--edition 2021` to `rustc`
|
|
|
|
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
|
|
|
|
|
|
|
|
error[E0670]: `async fn` is not permitted in Rust 2015
|
2023-09-13 11:04:42 -05:00
|
|
|
--> $DIR/edition-deny-async-fns-2015.rs:35:9
|
2023-06-23 22:00:08 -05:00
|
|
|
|
|
|
|
|
LL | async fn bar() {}
|
|
|
|
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
|
|
|
|
|
|
|
|
|
= help: pass `--edition 2021` to `rustc`
|
|
|
|
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
|
|
|
|
|
|
|
|
error[E0670]: `async fn` is not permitted in Rust 2015
|
2023-09-13 11:04:42 -05:00
|
|
|
--> $DIR/edition-deny-async-fns-2015.rs:25:9
|
2023-06-23 22:00:08 -05:00
|
|
|
|
|
|
|
|
LL | async fn foo() {}
|
|
|
|
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
|
|
|
|
|
|
|
|
|
= help: pass `--edition 2021` to `rustc`
|
|
|
|
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
|
|
|
|
|
|
|
|
error[E0670]: `async fn` is not permitted in Rust 2015
|
2023-09-13 11:04:42 -05:00
|
|
|
--> $DIR/edition-deny-async-fns-2015.rs:30:13
|
2023-06-23 22:00:08 -05:00
|
|
|
|
|
|
|
|
LL | async fn bar() {}
|
|
|
|
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
|
|
|
|
|
|
|
|
|
= help: pass `--edition 2021` to `rustc`
|
|
|
|
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
|
|
|
|
|
2023-09-13 11:04:42 -05:00
|
|
|
error: aborting due to 9 previous errors
|
2023-06-23 22:00:08 -05:00
|
|
|
|
2023-09-13 11:04:42 -05:00
|
|
|
For more information about this error, try `rustc --explain E0670`.
|