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
Copy file name to clipboardExpand all lines: tests/ui/send-not-implemented.stderr
+2-7Lines changed: 2 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,7 @@ note: future is not `Send` as this value is used across an await
17
17
| ------ has type `MutexGuard<'_, ()>` which is not `Send`
18
18
11 | f().await;
19
19
| ^^^^^ await occurs here, with `_guard` maybe used later
20
-
12 | }
21
-
| - `_guard` is later dropped here
22
-
= note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/send-not-implemented.rs:8:26: 12:6}>>` to `Pin<Box<(dyn Future<Output = ()> + Send + 'async_trait)>>`
20
+
= note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/send-not-implemented.rs:8:26: 12:6}>>` to `Pin<Box<dyn Future<Output = ()> + Send>>`
23
21
24
22
error: future cannot be sent between threads safely
25
23
--> tests/ui/send-not-implemented.rs:14:38
@@ -41,7 +39,4 @@ note: future is not `Send` as this value is used across an await
41
39
| ------ has type `MutexGuard<'_, ()>` which is not `Send`
42
40
17 | f().await;
43
41
| ^^^^^ await occurs here, with `_guard` maybe used later
44
-
18 | true
45
-
19 | }
46
-
| - `_guard` is later dropped here
47
-
= note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6}>>` to `Pin<Box<(dyn Future<Output = bool> + Send + 'async_trait)>>`
42
+
= note: required for the cast from `Pin<Box<{async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6}>>` to `Pin<Box<dyn Future<Output = bool> + Send>>`
0 commit comments