// Copyright 2020 TiKV Project Authors. Licensed under Apache-2.0. #[async_trait::async_trait] trait MyTrait { async fn work(&self) -> usize; } struct MyStruct; #[async_trait::async_trait] impl MyTrait for MyStruct { #[logcall::logcall("info")] #[fastrace::trace] async fn work(&self) -> usize { unimplemented!() } } fn main() {}