Remove await_macro
This commit is contained in:
parent
0347e1bd69
commit
af7570fced
1 changed files with 2 additions and 5 deletions
|
|
@ -1,7 +1,4 @@
|
|||
#![feature(
|
||||
async_await,
|
||||
await_macro,
|
||||
)]
|
||||
#![feature(async_await)]
|
||||
|
||||
use std::{future::Future, pin::Pin, task::Poll, ptr};
|
||||
use std::task::{Waker, RawWaker, RawWakerVTable, Context};
|
||||
|
|
@ -11,7 +8,7 @@ pub async fn foo(x: &u32, y: u32) -> u32 {
|
|||
let y = &y;
|
||||
let z = 9;
|
||||
let z = &z;
|
||||
let y = await!(async { *y + *z });
|
||||
let y = async { *y + *z }.await;
|
||||
let a = 10;
|
||||
let a = &a;
|
||||
*x + y + *a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue