1 error[E0670]: `async fn` is not permitted in Rust 2015
2 --> $DIR/edition-deny-async-fns-2015.rs:3:1
5 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
7 = help: pass `--edition 2021` to `rustc`
8 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
10 error[E0670]: `async fn` is not permitted in Rust 2015
11 --> $DIR/edition-deny-async-fns-2015.rs:5:12
13 LL | fn baz() { async fn foo() {} }
14 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
16 = help: pass `--edition 2021` to `rustc`
17 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
19 error[E0670]: `async fn` is not permitted in Rust 2015
20 --> $DIR/edition-deny-async-fns-2015.rs:7:1
22 LL | async fn async_baz() {
23 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
25 = help: pass `--edition 2021` to `rustc`
26 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
28 error[E0670]: `async fn` is not permitted in Rust 2015
29 --> $DIR/edition-deny-async-fns-2015.rs:8:5
31 LL | async fn bar() {}
32 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
34 = help: pass `--edition 2021` to `rustc`
35 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
37 error[E0670]: `async fn` is not permitted in Rust 2015
38 --> $DIR/edition-deny-async-fns-2015.rs:14:5
40 LL | async fn foo() {}
41 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
43 = help: pass `--edition 2021` to `rustc`
44 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
46 error[E0670]: `async fn` is not permitted in Rust 2015
47 --> $DIR/edition-deny-async-fns-2015.rs:18:5
49 LL | async fn foo() {}
50 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
52 = help: pass `--edition 2021` to `rustc`
53 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
55 error[E0670]: `async fn` is not permitted in Rust 2015
56 --> $DIR/edition-deny-async-fns-2015.rs:36:9
58 LL | async fn bar() {}
59 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
61 = help: pass `--edition 2021` to `rustc`
62 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
64 error[E0670]: `async fn` is not permitted in Rust 2015
65 --> $DIR/edition-deny-async-fns-2015.rs:26:9
67 LL | async fn foo() {}
68 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
70 = help: pass `--edition 2021` to `rustc`
71 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
73 error[E0670]: `async fn` is not permitted in Rust 2015
74 --> $DIR/edition-deny-async-fns-2015.rs:31:13
76 LL | async fn bar() {}
77 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
79 = help: pass `--edition 2021` to `rustc`
80 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
82 error[E0706]: functions in traits cannot be declared `async`
83 --> $DIR/edition-deny-async-fns-2015.rs:18:5
85 LL | async fn foo() {}
88 | `async` because of this
90 = note: `async` trait functions are not currently supported
91 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
92 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
93 = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
95 error: aborting due to 10 previous errors
97 Some errors have detailed explanations: E0670, E0706.
98 For more information about an error, try `rustc --explain E0670`.