]> git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/edition-deny-async-fns-2015.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / async-await / edition-deny-async-fns-2015.stderr
1 error[E0670]: `async fn` is not permitted in Rust 2015
2 --> $DIR/edition-deny-async-fns-2015.rs:3:1
3 |
4 LL | async fn foo() {}
5 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
6 |
7 = help: set `edition = "2018"` in `Cargo.toml`
8 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
9
10 error[E0670]: `async fn` is not permitted in Rust 2015
11 --> $DIR/edition-deny-async-fns-2015.rs:5:12
12 |
13 LL | fn baz() { async fn foo() {} }
14 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
15 |
16 = help: set `edition = "2018"` in `Cargo.toml`
17 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
18
19 error[E0670]: `async fn` is not permitted in Rust 2015
20 --> $DIR/edition-deny-async-fns-2015.rs:7:1
21 |
22 LL | async fn async_baz() {
23 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
24 |
25 = help: set `edition = "2018"` in `Cargo.toml`
26 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
27
28 error[E0670]: `async fn` is not permitted in Rust 2015
29 --> $DIR/edition-deny-async-fns-2015.rs:8:5
30 |
31 LL | async fn bar() {}
32 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
33 |
34 = help: set `edition = "2018"` in `Cargo.toml`
35 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
36
37 error[E0670]: `async fn` is not permitted in Rust 2015
38 --> $DIR/edition-deny-async-fns-2015.rs:14:5
39 |
40 LL | async fn foo() {}
41 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
42 |
43 = help: set `edition = "2018"` in `Cargo.toml`
44 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
45
46 error[E0670]: `async fn` is not permitted in Rust 2015
47 --> $DIR/edition-deny-async-fns-2015.rs:18:5
48 |
49 LL | async fn foo() {}
50 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
51 |
52 = help: set `edition = "2018"` in `Cargo.toml`
53 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
54
55 error[E0670]: `async fn` is not permitted in Rust 2015
56 --> $DIR/edition-deny-async-fns-2015.rs:36:9
57 |
58 LL | async fn bar() {}
59 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
60 |
61 = help: set `edition = "2018"` in `Cargo.toml`
62 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
63
64 error[E0670]: `async fn` is not permitted in Rust 2015
65 --> $DIR/edition-deny-async-fns-2015.rs:26:9
66 |
67 LL | async fn foo() {}
68 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
69 |
70 = help: set `edition = "2018"` in `Cargo.toml`
71 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
72
73 error[E0670]: `async fn` is not permitted in Rust 2015
74 --> $DIR/edition-deny-async-fns-2015.rs:31:13
75 |
76 LL | async fn bar() {}
77 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
78 |
79 = help: set `edition = "2018"` in `Cargo.toml`
80 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
81
82 error[E0706]: functions in traits cannot be declared `async`
83 --> $DIR/edition-deny-async-fns-2015.rs:18:5
84 |
85 LL | async fn foo() {}
86 | -----^^^^^^^^^^^^
87 | |
88 | `async` because of this
89 |
90 = note: `async` trait functions are not currently supported
91 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
92
93 error: aborting due to 10 previous errors
94
95 Some errors have detailed explanations: E0670, E0706.
96 For more information about an error, try `rustc --explain E0670`.