-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
rust-lang/rust
#140276Labels
from-craterA regression found via a crater run, not part of our test suiteA regression found via a crater run, not part of our test suite
Description
use std::future::Future;
trait Handler {}
struct W<T>(T);
trait SendTarget {
fn call(self) -> impl Future<Output = ()> + Send;
}
impl<T> SendTarget for W<T>
where
T: Handler + Send,
{
async fn call(self) {
todo!()
}
}
impl<T> SendTarget for T
where
T: Handler + Send,
{
async fn call(self) {
W(self).call().await
}
}
fn main() {}
Metadata
Metadata
Assignees
Labels
from-craterA regression found via a crater run, not part of our test suiteA regression found via a crater run, not part of our test suite
Type
Projects
Status
done