Andrew Walbran | d1b91c7 | 2020-08-11 17:12:08 +0100 | [diff] [blame^] | 1 | #![deny(bare_trait_objects)] |
2 | |||||
3 | use async_trait::async_trait; | ||||
4 | |||||
5 | #[async_trait] | ||||
6 | trait Trait { | ||||
7 | async fn f(&self); | ||||
8 | } | ||||
9 | |||||
10 | #[async_trait] | ||||
11 | impl Trait for Send + Sync { | ||||
12 | async fn f(&self) {} | ||||
13 | } | ||||
14 | |||||
15 | fn main() {} |