Sha256: 3139a3d92cf787c43afd93da2d967ee80d114ee3a0b9c924da9601b5c6614ef5
Contents?: true
Size: 379 Bytes
Versions: 37
Compression:
Stored size: 379 Bytes
Contents
use async_trait::async_trait; #[async_trait] trait Foo { async fn bar(&self, x: &str, y: &'_ str) -> &'static str; } struct S(String); #[async_trait] impl Foo for S { async fn bar(&self, x: &str, y: &'_ str) -> &'static str { if false { &self.0 } else if false { x } else { y } } } fn main() {}
Version data entries
37 entries across 37 versions & 1 rubygems