1 // https://github.com/rust-lang/rust/issues/93828 2 3 use async_trait::async_trait; 4 5 pub trait IntoUrl {} 6 7 #[async_trait] 8 pub trait ClientExt { publish<T: IntoUrl>(&self, url: T)9 async fn publish<T: IntoUrl>(&self, url: T); 10 } 11 12 struct Client; 13 14 #[async_trait] 15 impl ClientExt for Client { publish<T: IntoUrl>(&self, url: T)16 async fn publish<T: IntoUrl>(&self, url: T) {} 17 } 18 19 struct Client2; 20 21 #[async_trait] 22 impl ClientExt for Client2 { publish<T>(&self, url: T)23 async fn publish<T>(&self, url: T) {} 24 } 25 main()26fn main() {} 27