Closed bestgopher closed 8 months ago
fn main() {} #[trait_variant::make(AsyncTraitExampleSend: Send)] trait AsyncTraitExample { async fn example(&self) { println!("aaa"); } }
The example code shown above. And expand the macor:
trait AsyncTraitExampleSend: Send { fn example(&self) -> impl ::core::future::Future<Output = ()> + Send { { ::std::io::_print(format_args!("aaa\n")); }; } }
Build failed.
See #17 , your issue is probably a duplicate.
The example code shown above. And expand the macor:
Build failed.