1 use async_trait::async_trait; 2 3 #[async_trait] 4 pub trait Trait { method()5 async fn method(); 6 } 7 8 #[async_trait] 9 impl Trait for &'static str { method()10 async fn method() { 11 let _ = Self; 12 } 13 } 14 main()15 fn main() {} 16