summaryrefslogtreecommitdiffstats
path: root/third_party/rust/async-trait/tests/ui/bare-trait-object.rs
blob: afcd6b44c3332d26f50c81b4f38c34e45fcc5d3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![deny(bare_trait_objects)]

use async_trait::async_trait;

#[async_trait]
trait Trait {
    async fn f(&self);
}

#[async_trait]
impl Trait for Send + Sync {
    async fn f(&self) {}
}

fn main() {}