]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-54974.rs
Stabilize futures_api
[rust.git] / src / test / ui / issues / issue-54974.rs
1 // compile-pass
2 // edition:2018
3
4 #![feature(async_await, await_macro)]
5
6 use std::sync::Arc;
7
8 trait SomeTrait: Send + Sync + 'static {
9     fn do_something(&self);
10 }
11
12 async fn my_task(obj: Arc<SomeTrait>) {
13     unimplemented!()
14 }
15
16 fn main() {}