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
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
error: future cannot be sent between threads safely
2
2
--> tests/ui/send-not-implemented.rs:8:26
3
3
|
4
-
8 | async fn test(&self) {
4
+
8 | async fn test(&self) {
5
5
| __________________________^
6
-
9 | | let mutex = Mutex::new(());
6
+
9 | | let mutex = Mutex::new(());
7
7
10 | | let _guard = mutex.lock().unwrap();
8
8
11 | | f().await;
9
9
12 | | }
10
10
| |_____^ future created by async block is not `Send`
11
11
|
12
-
= help: within `{async block@$DIR/tests/ui/send-not-implemented.rs:8:26: 12:6}`, 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 `std::sync::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:13
15
15
|
16
16
10 | let _guard = mutex.lock().unwrap();
17
-
| ------ has type `MutexGuard<'_, ()>` which is not `Send`
17
+
| ------ has type `std::sync::MutexGuard<'_, ()>` which is not `Send`
18
18
11 | f().await;
19
19
| ^^^^^ await occurs here, with `_guard` maybe used later
20
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>>`
@@ -31,12 +31,12 @@ error: future cannot be sent between threads safely
31
31
19 | | }
32
32
| |_____^ future created by async block is not `Send`
33
33
|
34
-
= help: within `{async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6}`, the trait `Send` is not implemented for `MutexGuard<'_, ()>`
34
+
= help: within `{async block@$DIR/tests/ui/send-not-implemented.rs:14:38: 19:6}`, the trait `Send` is not implemented for `std::sync::MutexGuard<'_, ()>`
35
35
note: future is not `Send` as this value is used across an await
36
36
--> tests/ui/send-not-implemented.rs:17:13
37
37
|
38
38
16 | let _guard = mutex.lock().unwrap();
39
-
| ------ has type `MutexGuard<'_, ()>` which is not `Send`
39
+
| ------ has type `std::sync::MutexGuard<'_, ()>` which is not `Send`
40
40
17 | f().await;
41
41
| ^^^^^ await occurs here, with `_guard` maybe used later
42
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