]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/edition-deny-async-fns-2015.stderr
Auto merge of #66571 - Centril:rollup-41tn2fw, r=Centril
[rust.git] / src / test / ui / async-await / edition-deny-async-fns-2015.stderr
1 error[E0670]: `async fn` is not permitted in the 2015 edition
2   --> $DIR/edition-deny-async-fns-2015.rs:3:1
3    |
4 LL | async fn foo() {}
5    | ^^^^^
6
7 error[E0670]: `async fn` is not permitted in the 2015 edition
8   --> $DIR/edition-deny-async-fns-2015.rs:5:12
9    |
10 LL | fn baz() { async fn foo() {} }
11    |            ^^^^^
12
13 error[E0670]: `async fn` is not permitted in the 2015 edition
14   --> $DIR/edition-deny-async-fns-2015.rs:7:1
15    |
16 LL | async fn async_baz() {
17    | ^^^^^
18
19 error[E0670]: `async fn` is not permitted in the 2015 edition
20   --> $DIR/edition-deny-async-fns-2015.rs:8:5
21    |
22 LL |     async fn bar() {}
23    |     ^^^^^
24
25 error[E0670]: `async fn` is not permitted in the 2015 edition
26   --> $DIR/edition-deny-async-fns-2015.rs:14:5
27    |
28 LL |     async fn foo() {}
29    |     ^^^^^
30
31 error[E0670]: `async fn` is not permitted in the 2015 edition
32   --> $DIR/edition-deny-async-fns-2015.rs:18:5
33    |
34 LL |     async fn foo() {}
35    |     ^^^^^
36
37 error[E0670]: `async fn` is not permitted in the 2015 edition
38   --> $DIR/edition-deny-async-fns-2015.rs:36:9
39    |
40 LL |         async fn bar() {}
41    |         ^^^^^
42
43 error[E0670]: `async fn` is not permitted in the 2015 edition
44   --> $DIR/edition-deny-async-fns-2015.rs:26:9
45    |
46 LL |         async fn foo() {}
47    |         ^^^^^
48
49 error[E0670]: `async fn` is not permitted in the 2015 edition
50   --> $DIR/edition-deny-async-fns-2015.rs:31:13
51    |
52 LL |             async fn bar() {}
53    |             ^^^^^
54
55 error[E0706]: trait fns cannot be declared `async`
56   --> $DIR/edition-deny-async-fns-2015.rs:18:5
57    |
58 LL |     async fn foo() {}
59    |     ^^^^^^^^^^^^^^^^^
60    |
61    = note: `async` trait functions are not currently supported
62    = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
63
64 error: aborting due to 10 previous errors
65
66 Some errors have detailed explanations: E0670, E0706.
67 For more information about an error, try `rustc --explain E0670`.