Unrolled await macro.
Was then able to the minimise the reproduction a little further.
This commit is contained in:
parent
6dd2a857aa
commit
33a64699b1
@ -1,7 +1,7 @@
|
|||||||
// This issue reproduces an ICE on compile (E.g. fails on 2018-12-19 nightly).
|
// This issue reproduces an ICE on compile (E.g. fails on 2018-12-19 nightly).
|
||||||
// run-pass
|
// run-pass
|
||||||
// edition:2018
|
// edition:2018
|
||||||
#![feature(async_await,futures_api,await_macro,generators)]
|
#![feature(async_await,futures_api,generators)]
|
||||||
|
|
||||||
pub struct Foo;
|
pub struct Foo;
|
||||||
|
|
||||||
@ -18,10 +18,10 @@ 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 || {
|
let _to_pin = self.with(move || println!("{:p}", data));
|
||||||
println!("{:p}", data);
|
loop {
|
||||||
}))
|
yield
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
Loading…
x
Reference in New Issue
Block a user