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

17 lines
242 B
Rust
Raw Normal View History

// compile-pass
// edition:2018
2019-04-05 16:14:19 -05:00
#![feature(async_await, await_macro)]
use std::sync::Arc;
trait SomeTrait: Send + Sync + 'static {
fn do_something(&self);
}
async fn my_task(obj: Arc<SomeTrait>) {
unimplemented!()
}
fn main() {}