4 use ::core::future::Future;
5 use ::core::marker::Send;
8 fn bar<'me, 'async_trait, T: Send>(x: &'me T)
9 -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
10 where 'me: 'async_trait;
14 fn bar<'me, 'async_trait, T: Send>(x: &'me T)
15 -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
16 where 'me:'async_trait {
17 Box::pin( //~ ERROR future cannot be sent between threads safely