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