]> git.proxmox.com Git - rustc.git/blame - src/test/ui/feature-gates/feature-gate-async-await.stderr
New upstream version 1.38.0+dfsg1
[rustc.git] / src / test / ui / feature-gates / feature-gate-async-await.stderr
CommitLineData
48663c56
XL
1error[E0706]: trait fns cannot be declared `async`
2 --> $DIR/feature-gate-async-await.rs:10:5
3 |
4LL | async fn foo();
5 | ^^^^^^^^^^^^^^^
6
7error[E0658]: async fn is unstable
8 --> $DIR/feature-gate-async-await.rs:6:5
9 |
10LL | 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
16error[E0658]: async fn is unstable
17 --> $DIR/feature-gate-async-await.rs:10:5
18 |
19LL | 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
25error[E0658]: async fn is unstable
26 --> $DIR/feature-gate-async-await.rs:14:1
8faf50e0 27 |
532ac7d7 28LL | 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
34error[E0658]: async blocks are unstable
35 --> $DIR/feature-gate-async-await.rs:17:13
8faf50e0 36 |
532ac7d7 37LL | 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 43error: aborting due to 5 previous errors
8faf50e0
XL
44
45For more information about this error, try `rustc --explain E0658`.