rust/tests/ui/async-await/issues/issue-54974.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
205 B
Rust
Raw Normal View History

// 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() {}