mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
12 lines
249 B
Rust
12 lines
249 B
Rust
//@ known-bug: #122914
|
|
use std::future::Future;
|
|
use std::pin::Pin;
|
|
|
|
impl<'a, F> Poll {
|
|
fn project<'_>(self: Pin<&'pin mut Future>) -> Projection<'pin, 'a, F> {
|
|
me.local_set.with(|| {
|
|
let _ = self.poll(cx);
|
|
})
|
|
}
|
|
}
|