]>
git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/return-type-notation/issue-110963-late.rs
4 #![feature(return_type_notation)]
5 //~^ WARN the feature `return_type_notation` is incomplete
8 async
fn check(&mut self) -> bool
;
11 async
fn do_health_check_par
<HC
>(hc
: HC
)
13 HC
: HealthCheck
<check(): Send
> + Send
+ '
static,
17 if !hc
.check().await
{
18 log_health_check_failure().await
;
23 async
fn log_health_check_failure() {}
29 use std
::future
::Future
;
31 use std
::task
::{Context, Poll}
;
33 fn spawn
<F
>(future
: F
) -> JoinHandle
35 F
: Future
+ Send
+ '
static,
36 F
::Output
: Send
+ '
static,
43 impl Future
for JoinHandle
{
45 fn poll(self: Pin
<&mut Self>, cx
: &mut Context
<'_
>) -> Poll
<Self::Output
> {