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 `impl Future<Output = ()>` to the object type `dyn Future<Output = ()> + Send`
12
+
= note: required for the cast from `[async block@$DIR/tests/ui/consider-restricting.rs:16:49: 16:51]` to the object type `dyn Future<Output = ()> + Send`
@@ -26,7 +26,7 @@ note: captured value is not `Send`
26
26
|
27
27
23 | async fn publish<T>(&self, url: T) {}
28
28
| ^^^ has type `T` which is not `Send`
29
-
= note: required for the cast from `impl Future<Output = ()>` to the object type `dyn Future<Output = ()> + Send`
29
+
= note: required for the cast from `[async block@$DIR/tests/ui/consider-restricting.rs:23:40: 23:42]` to the object type `dyn Future<Output = ()> + Send`
Copy file name to clipboardExpand all lines: tests/ui/send-not-implemented.stderr
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ error: future cannot be sent between threads safely
9
9
12 | | }
10
10
| |_____^ future created by async block is not `Send`
11
11
|
12
-
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
12
+
= help: within `[async block@$DIR/tests/ui/send-not-implemented.rs:8:26: 12:6]`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
13
13
note: future is not `Send` as this value is used across an await
14
14
--> tests/ui/send-not-implemented.rs:11:12
15
15
|
@@ -19,7 +19,7 @@ note: future is not `Send` as this value is used across an await
19
19
| ^^^^^^ await occurs here, with `_guard` maybe used later
20
20
12 | }
21
21
| - `_guard` is later dropped here
22
-
= note: required for the cast from `impl Future<Output = ()>` to the object type `dyn Future<Output = ()> + Send`
22
+
= note: required for the cast from `[async block@$DIR/tests/ui/send-not-implemented.rs:8:26: 12:6]` to the object type `dyn Future<Output = ()> + Send`
23
23
24
24
error: future cannot be sent between threads safely
25
25
--> tests/ui/send-not-implemented.rs:14:38
@@ -33,7 +33,7 @@ error: future cannot be sent between threads safely
33
33
19 | | }
34
34
| |_____^ future created by async block is not `Send`
35
35
|
36
-
= help: within `impl Future<Output = bool>`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
36
+
= help: within `[async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6]`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
37
37
note: future is not `Send` as this value is used across an await
38
38
--> tests/ui/send-not-implemented.rs:17:12
39
39
|
@@ -44,4 +44,4 @@ note: future is not `Send` as this value is used across an await
44
44
18 | true
45
45
19 | }
46
46
| - `_guard` is later dropped here
47
-
= note: required for the cast from `impl Future<Output = bool>` to the object type `dyn Future<Output = bool> + Send`
47
+
= note: required for the cast from `[async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6]` to the object type `dyn Future<Output = bool> + Send`
0 commit comments