1 #![deny(warnings)] 2 3 use async_trait::async_trait; 4 5 #[async_trait] 6 pub trait Trait { f()7 async fn f() { 8 unimplemented!() 9 } 10 } 11 12 #[async_trait] 13 pub trait TraitFoo { f()14 async fn f() { 15 let y = unimplemented!(); 16 let z = y; 17 } 18 } 19 main()20 fn main() {} 21