use std::{future::Future, pin::Pin}; pub trait Foo { type Bar: AsRef<()>; fn foo(&self) -> Pin + '_>>; }