]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-54974.rs
Sync core::simd up to rust-lang/portable-simd@2e081db92aa3ee0a4563bc28ce01bdad5b1b2efd
[rust.git] / src / test / ui / async-await / issues / issue-54974.rs
1 // check-pass
2 // edition:2018
3
4 use std::sync::Arc;
5
6 trait SomeTrait: Send + Sync + 'static {
7     fn do_something(&self);
8 }
9
10 async fn my_task(obj: Arc<dyn SomeTrait>) {
11     unimplemented!()
12 }
13
14 fn main() {}