blob: 9a2e4aaf75e42fad6bdf77f359929e65876fb1f3 [file] [log] [blame] [edit]
//@edition:2018
#![feature(impl_trait_in_assoc_type)]
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 {}
}
}