Closed
Description
Code:
#![feature(async_await, await_macro)]
use std::r#await as std_await;
async fn foo() {}
async fn bar() {
std_await!(foo())
}
Error:
error[E0658]: macro std_await! is unstable
--> code\src\lib.rs:8:5
|
8 | std_await!(noop())
| ^^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
= help: add #![feature(await_macro)] to the crate attributes to enable
error[E0727]: `async` generators are not yet supported
--> code\src\lib.rs:7:16
|
7 | async fn foo() {
| ________________^
8 | | std_await!(noop())
9 | | }
| |_^
error: aborting due to 2 previous errors
Seems the second error relates to the fact that std::await
is still defined using yield
.
Line 378 in 9f83961
Rustc version: rustc 1.36.0-nightly (3f5152e 2019-05-08)
cc @cramertj