blob: 0e8e14852d9db9a41a23c2b9828b9dd85e8b450e (
plain)
1
2
3
4
5
6
7
8
|
#![feature(generic_associated_types)]
use std::{future::Future, pin::Pin};
pub trait Foo {
type Bar: AsRef<()>;
fn foo(&self) -> Pin<Box<dyn Future<Output = Self::Bar> + '_>>;
}
|