]>
Commit | Line | Data |
---|---|---|
48663c56 XL |
1 | error[E0706]: trait fns cannot be declared `async` |
2 | --> $DIR/feature-gate-async-await.rs:10:5 | |
3 | | | |
4 | LL | async fn foo(); | |
5 | | ^^^^^^^^^^^^^^^ | |
6 | ||
7 | error[E0658]: async fn is unstable | |
8 | --> $DIR/feature-gate-async-await.rs:6:5 | |
9 | | | |
10 | LL | async fn foo() {} | |
11 | | ^^^^^^^^^^^^^^^^^ | |
12 | | | |
13 | = note: for more information, see https://github.com/rust-lang/rust/issues/50547 | |
416331ca | 14 | = help: add `#![feature(async_await)]` to the crate attributes to enable |
48663c56 XL |
15 | |
16 | error[E0658]: async fn is unstable | |
17 | --> $DIR/feature-gate-async-await.rs:10:5 | |
18 | | | |
19 | LL | async fn foo(); | |
20 | | ^^^^^^^^^^^^^^^ | |
21 | | | |
22 | = note: for more information, see https://github.com/rust-lang/rust/issues/50547 | |
416331ca | 23 | = help: add `#![feature(async_await)]` to the crate attributes to enable |
48663c56 XL |
24 | |
25 | error[E0658]: async fn is unstable | |
26 | --> $DIR/feature-gate-async-await.rs:14:1 | |
8faf50e0 | 27 | | |
532ac7d7 | 28 | LL | async fn foo() {} |
8faf50e0 XL |
29 | | ^^^^^^^^^^^^^^^^^ |
30 | | | |
48663c56 | 31 | = note: for more information, see https://github.com/rust-lang/rust/issues/50547 |
416331ca | 32 | = help: add `#![feature(async_await)]` to the crate attributes to enable |
8faf50e0 | 33 | |
48663c56 XL |
34 | error[E0658]: async blocks are unstable |
35 | --> $DIR/feature-gate-async-await.rs:17:13 | |
8faf50e0 | 36 | | |
532ac7d7 | 37 | LL | let _ = async {}; |
8faf50e0 XL |
38 | | ^^^^^^^^ |
39 | | | |
48663c56 | 40 | = note: for more information, see https://github.com/rust-lang/rust/issues/50547 |
416331ca | 41 | = help: add `#![feature(async_await)]` to the crate attributes to enable |
8faf50e0 | 42 | |
416331ca | 43 | error: aborting due to 5 previous errors |
8faf50e0 XL |
44 | |
45 | For more information about this error, try `rustc --explain E0658`. |