2020-05-10 06:22:45 -05:00
|
|
|
//edition:2018
|
|
|
|
|
2023-04-12 08:32:15 -05:00
|
|
|
#![feature(impl_trait_in_assoc_type)]
|
2020-05-10 06:22:45 -05:00
|
|
|
|
|
|
|
pub trait Foo {
|
|
|
|
type X: std::future::Future<Output = ()>;
|
|
|
|
fn x(&self) -> Self::X;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct F;
|
|
|
|
|
|
|
|
impl Foo for F {
|
|
|
|
type X = impl std::future::Future<Output = ()>;
|
|
|
|
fn x(&self) -> Self::X {
|
|
|
|
async {}
|
|
|
|
}
|
|
|
|
}
|