-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-async-awaitArea: Async & AwaitArea: Async & AwaitC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
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
yield |
Rustc version: rustc 1.36.0-nightly (3f5152e 2019-05-08)
cc @cramertj
Metadata
Metadata
Assignees
Labels
A-async-awaitArea: Async & AwaitArea: Async & AwaitC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.