Do we need Send bounds to stabilize async_fn_in_trait?#103854 Return position impl Trait in trait Should we stabilize this feature together withasync fnto mitigate hazards of writing a trait that is not forwards
I tried this code: use std::future::Future; trait Foo { fn foo<S>(&self, s: S) -> impl Future<Output = S> + Send; } struct Bar; impl Foo for Bar { async fn foo<S>(&self, s: S) -> S where S: std::marker::Send, { s } } which returns the fo...