Unrolled await macro.

Was then able to the minimise the reproduction a little further.
This commit is contained in:
Giles Cope 2019-03-05 09:06:24 +00:00
parent 6dd2a857aa
commit 33a64699b1

View File

@ -1,7 +1,7 @@
// This issue reproduces an ICE on compile (E.g. fails on 2018-12-19 nightly).
// run-pass
// edition:2018
#![feature(async_await,futures_api,await_macro,generators)]
#![feature(async_await,futures_api,generators)]
pub struct Foo;
@ -16,12 +16,12 @@ impl Foo {
}
}
pub async fn run<'a>(&'a self, data: &'a [u8])
pub async fn run<'a>(&'a self, data: &'a [u8])
{
await!(self.with(move || {
println!("{:p}", data);
}))
let _to_pin = self.with(move || println!("{:p}", data));
loop {
yield
}
}
}
fn main() {}