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/arg_not_sync.stderr
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ error[E0277]: `dyn Future<Output = ()> + Send` cannot be shared between threads
6
6
| |
7
7
| required by a bound introduced by this call
8
8
|
9
-
= help: the trait `Sync` is not implemented for `dyn Future<Output = ()> + Send`
9
+
= help: the trait `Sync` is not implemented for `dyn Future<Output = ()> + Send`, which is required by `Pin<Box<dyn Future<Output = ()> + Send>>: Sync`
10
10
= note: required for `Unique<dyn Future<Output = ()> + Send>` to implement `Sync`
11
11
note: required because it appears within the type `Box<dyn Future<Output = ()> + Send>`
12
12
--> $RUST/alloc/src/boxed.rs
@@ -16,7 +16,7 @@ note: required because it appears within the type `Box<dyn Future<Output = ()> +
16
16
note: required because it appears within the type `Pin<Box<dyn Future<Output = ()> + Send>>`
17
17
--> $RUST/core/src/pin.rs
18
18
|
19
-
| pub struct Pin<P> {
19
+
| pub struct Pin<Ptr> {
20
20
| ^^^
21
21
note: required by a bound in `assert_is_sync`
22
22
--> tests/ui/arg_not_sync.rs:3:27
@@ -32,7 +32,7 @@ error[E0277]: `dyn Future<Output = ()>` cannot be shared between threads safely
32
32
| |
33
33
| required by a bound introduced by this call
34
34
|
35
-
= help: the trait `Sync` is not implemented for `dyn Future<Output = ()>`
35
+
= help: the trait `Sync` is not implemented for `dyn Future<Output = ()>`, which is required by `Pin<Box<dyn Future<Output = ()>>>: Sync`
36
36
= note: required for `Unique<dyn Future<Output = ()>>` to implement `Sync`
37
37
note: required because it appears within the type `Box<dyn Future<Output = ()>>`
38
38
--> $RUST/alloc/src/boxed.rs
@@ -42,7 +42,7 @@ note: required because it appears within the type `Box<dyn Future<Output = ()>>`
42
42
note: required because it appears within the type `Pin<Box<dyn Future<Output = ()>>>`
0 commit comments