fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.7 KiB63 linesraw
1error[E0670]: `async fn` is not permitted in the 2015 edition
2  --> $DIR/edition-deny-async-fns-2015.rs:3:1
3   |
4LL | async fn foo() {}
5   | ^^^^^
6
7error[E0670]: `async fn` is not permitted in the 2015 edition
8  --> $DIR/edition-deny-async-fns-2015.rs:5:12
9   |
10LL | fn baz() { async fn foo() {} }
11   |            ^^^^^
12
13error[E0670]: `async fn` is not permitted in the 2015 edition
14  --> $DIR/edition-deny-async-fns-2015.rs:8:5
15   |
16LL |     async fn bar() {}
17   |     ^^^^^
18
19error[E0670]: `async fn` is not permitted in the 2015 edition
20  --> $DIR/edition-deny-async-fns-2015.rs:7:1
21   |
22LL | async fn async_baz() {
23   | ^^^^^
24
25error[E0670]: `async fn` is not permitted in the 2015 edition
26  --> $DIR/edition-deny-async-fns-2015.rs:14:5
27   |
28LL |     async fn foo() {}
29   |     ^^^^^
30
31error[E0670]: `async fn` is not permitted in the 2015 edition
32  --> $DIR/edition-deny-async-fns-2015.rs:18:5
33   |
34LL |     async fn foo() {}
35   |     ^^^^^
36
37error[E0670]: `async fn` is not permitted in the 2015 edition
38  --> $DIR/edition-deny-async-fns-2015.rs:36:9
39   |
40LL |         async fn bar() {}
41   |         ^^^^^
42
43error[E0670]: `async fn` is not permitted in the 2015 edition
44  --> $DIR/edition-deny-async-fns-2015.rs:26:9
45   |
46LL |         async fn foo() {}
47   |         ^^^^^
48
49error[E0670]: `async fn` is not permitted in the 2015 edition
50  --> $DIR/edition-deny-async-fns-2015.rs:31:13
51   |
52LL |             async fn bar() {}
53   |             ^^^^^
54
55error[E0706]: trait fns cannot be declared `async`
56  --> $DIR/edition-deny-async-fns-2015.rs:18:5
57   |
58LL |     async fn foo() {}
59   |     ^^^^^^^^^^^^^^^^^
60
61error: aborting due to 10 previous errors
62
63For more information about this error, try `rustc --explain E0670`.