about summary refs log tree commit diff
path: root/tests/ui/async-await/issues/issue-54974.rs
blob: a8b063821e4faac78d32f3e7c708db9697c58e68 (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() {}