rust/src/test/ui/async-await/issues/issue-54974.rs

15 lines
242 B
Rust
Raw Normal View History

// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
use std::sync::Arc;
trait SomeTrait: Send + Sync + 'static {
fn do_something(&self);
}
2019-05-28 13:46:13 -05:00
async fn my_task(obj: Arc<dyn SomeTrait>) {
unimplemented!()
}
fn main() {}