error: future cannot be sent between threads safely --> tests/ui/consider-restricting.rs:16:5 | 16 | async fn publish(&self, _url: T) {} | ^^^^^ future created by async block is not `Send` | note: captured value is not `Send` --> tests/ui/consider-restricting.rs:16:41 | 16 | async fn publish(&self, _url: T) {} | ^^^^ has type `T` which is not `Send` = note: required for the cast from `Pin>` to `Pin + Send>>` help: consider further restricting type parameter `T` with trait `Send` | 16 | async fn publish(&self, _url: T) {} | +++++++++++++++++++ error: future cannot be sent between threads safely --> tests/ui/consider-restricting.rs:23:5 | 23 | async fn publish(&self, _url: T) {} | ^^^^^ future created by async block is not `Send` | note: captured value is not `Send` --> tests/ui/consider-restricting.rs:23:32 | 23 | async fn publish(&self, _url: T) {} | ^^^^ has type `T` which is not `Send` = note: required for the cast from `Pin>` to `Pin + Send>>` help: consider further restricting type parameter `T` with trait `Send` | 23 | async fn publish(&self, _url: T) {} | +++++++++++++++++++