You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= 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)>>`
20
+
= 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>>`
13
21
help: consider further restricting type parameter `T` with trait `Send`
| ^^^ help: if this is intentional, prefix it with an underscore: `_url`
31
+
18
32
error: future cannot be sent between threads safely
19
33
--> tests/ui/consider-restricting.rs:23:40
20
34
|
@@ -26,7 +40,7 @@ note: captured value is not `Send`
26
40
|
27
41
23 | async fn publish<T>(&self, url: T) {}
28
42
| ^^^ 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)>>`
43
+
= 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>>`
30
44
help: consider further restricting type parameter `T` with trait `Send`
0 commit comments