blob: 7ad0d9bf33d9b41576f0546e929619351878e88e [file] [log] [blame]
Andrew Walbrand1b91c72020-08-11 17:12:08 +01001#![deny(unused_must_use)]
2
3use async_trait::async_trait;
4
5#[async_trait]
6trait Interface {
7 async fn f(&self);
8}
9
10struct Thing;
11
12#[async_trait]
13impl Interface for Thing {
14 async fn f(&self) {}
15}
16
17pub async fn f() {
18 Thing.f();
19}
20
21fn main() {}