Debian Codegraph @

tests/derive_ref/successes/async_method.rs

raw symbols SCIP
1 use impls::impls;
2
3 #[blanket::blanket(derive(Ref))]
4 trait Foo {
5 async fn bar(&self);
6 }
7
8 #[derive(Default)]
9 struct Baz;
10
11 impl Foo for Baz {
12 async fn bar(&self) {}
13 }
14
15 fn main() {
16 assert!(impls!(Baz: Foo));
17 assert!(impls!(&Baz: Foo));
18 }