summaryrefslogtreecommitdiffstats
path: root/third_party/rust/async-trait/tests/ui/missing-async-in-trait.rs
blob: 56fea7a1f8cae2f8bbee1ae74eb0c16a5c22e342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use async_trait::async_trait;

#[async_trait]
pub trait Trait {
    fn method();
}

pub struct Struct;

#[async_trait]
impl Trait for Struct {
    async fn method() {}
}

fn main() {}