summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/issues/issue-54974.rs
blob: b602ef153e621fb22940e76f5b15710e978a9c67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// check-pass
// edition:2018

use std::sync::Arc;

trait SomeTrait: Send + Sync + 'static {
    fn do_something(&self);
}

async fn my_task(obj: Arc<dyn SomeTrait>) {
    unimplemented!()
}

fn main() {}