mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-12 05:10:47 +00:00
18 lines
287 B
Rust
18 lines
287 B
Rust
//@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 {}
|
|
}
|
|
}
|