2019-11-04 00:00:00 +00:00
|
|
|
//@ check-pass
|
2019-03-13 17:42:23 -07:00
|
|
|
//@ edition:2018
|
|
|
|
|
|
|
|
|
|
use std::sync::Arc;
|
|
|
|
|
|
|
|
|
|
trait SomeTrait: Send + Sync + 'static {
|
|
|
|
|
fn do_something(&self);
|
|
|
|
|
}
|
|
|
|
|
|
2019-05-28 14:46:13 -04:00
|
|
|
async fn my_task(obj: Arc<dyn SomeTrait>) {
|
2019-03-13 17:42:23 -07:00
|
|
|
unimplemented!()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|