]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/edition-deny-async-fns-2015.stderr
Rollup merge of #63737 - HowJMay:fix_naming, r=jonas-schievink
[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:8:5
15    |
16 LL |     async fn bar() {}
17    |     ^^^^^
18
19 error[E0670]: `async fn` is not permitted in the 2015 edition
20   --> $DIR/edition-deny-async-fns-2015.rs:7:1
21    |
22 LL | async fn async_baz() {
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 error: aborting due to 10 previous errors
62
63 For more information about this error, try `rustc --explain E0670`.