3 use std::future::Future;
5 struct Client(Box<dyn Any + Send>);
8 fn status(&self) -> u16 {
15 pub fn foo() -> impl Future + Send {
16 //~^ ERROR future cannot be sent between threads safely
17 let client = Client(Box::new(true));
19 match client.status() {