]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/issues/issue-54974.rs
Rollup merge of #107061 - compiler-errors:new-solver-new-candidates-3, r=lcnr
[rust.git] / tests / 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() {}