From 99c4a94fa57775346ae108122675261bdbfd97e0 Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Sat, 6 Jul 2019 07:45:09 +0200 Subject: [PATCH] Update error_codes re. await_macro removal. --- src/librustc/error_codes.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/librustc/error_codes.rs b/src/librustc/error_codes.rs index 1edadbd5bae..b3eee7c3464 100644 --- a/src/librustc/error_codes.rs +++ b/src/librustc/error_codes.rs @@ -2088,11 +2088,11 @@ struct Foo { Erroneous code example: ```edition2018,compile-fail,E0698 -#![feature(futures_api, async_await, await_macro)] +#![feature(async_await)] async fn bar() -> () {} async fn foo() { - await!(bar()); // error: cannot infer type for `T` + bar().await; // error: cannot infer type for `T` } ``` @@ -2101,12 +2101,12 @@ async fn foo() { so that a generator can then be constructed: ```edition2018 -#![feature(futures_api, async_await, await_macro)] +#![feature(async_await)] async fn bar() -> () {} async fn foo() { - await!(bar::()); - // ^^^^^^^^ specify type explicitly + bar::().await; + // ^^^^^^^^ specify type explicitly } ``` "##, -- 2.44.0