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