]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-async-await-2015-edition.stderr
Stabilize futures_api
[rust.git] / src / test / ui / feature-gates / feature-gate-async-await-2015-edition.stderr
1 error[E0670]: `async fn` is not permitted in the 2015 edition
2   --> $DIR/feature-gate-async-await-2015-edition.rs:3:1
3    |
4 LL | async fn foo() {}
5    | ^^^^^
6
7 error[E0422]: cannot find struct, variant or union type `async` in this scope
8   --> $DIR/feature-gate-async-await-2015-edition.rs:7:13
9    |
10 LL |     let _ = async {};
11    |             ^^^^^ not found in this scope
12
13 error[E0425]: cannot find value `async` in this scope
14   --> $DIR/feature-gate-async-await-2015-edition.rs:8:13
15    |
16 LL |     let _ = async || { true };
17    |             ^^^^^ not found in this scope
18
19 error[E0658]: async fn is unstable
20   --> $DIR/feature-gate-async-await-2015-edition.rs:3:1
21    |
22 LL | async fn foo() {}
23    | ^^^^^^^^^^^^^^^^^
24    |
25    = note: for more information, see https://github.com/rust-lang/rust/issues/50547
26    = help: add #![feature(async_await)] to the crate attributes to enable
27
28 error: aborting due to 4 previous errors
29
30 Some errors have detailed explanations: E0422, E0425, E0658, E0670.
31 For more information about an error, try `rustc --explain E0422`.