1error: future cannot be sent between threads safely 2 --> tests/ui/consider-restricting.rs:16:49 3 | 416 | async fn publish<T: IntoUrl>(&self, url: T) {} 5 | ^^ future created by async block is not `Send` 6 | 7note: captured value is not `Send` 8 --> tests/ui/consider-restricting.rs:16:41 9 | 1016 | async fn publish<T: IntoUrl>(&self, url: T) {} 11 | ^^^ has type `T` which is not `Send` 12 = note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/consider-restricting.rs:16:49: 16:51}>>` to `Pin<Box<(dyn Future<Output = ()> + Send + 'async_trait)>>` 13help: consider further restricting this bound 14 | 1516 | async fn publish<T: IntoUrl + std::marker::Send>(&self, url: T) {} 16 | +++++++++++++++++++ 17 18error: future cannot be sent between threads safely 19 --> tests/ui/consider-restricting.rs:23:40 20 | 2123 | async fn publish<T>(&self, url: T) {} 22 | ^^ future created by async block is not `Send` 23 | 24note: captured value is not `Send` 25 --> tests/ui/consider-restricting.rs:23:32 26 | 2723 | async fn publish<T>(&self, url: T) {} 28 | ^^^ has type `T` which is not `Send` 29 = note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/consider-restricting.rs:23:40: 23:42}>>` to `Pin<Box<(dyn Future<Output = ()> + Send + 'async_trait)>>` 30help: consider further restricting this bound 31 | 3223 | async fn publish<T + std::marker::Send>(&self, url: T) {} 33 | +++++++++++++++++++ 34