Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/ui/arg_not_sync.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ error[E0277]: `dyn Future<Output = ()> + Send` cannot be shared between threads
| |
| required by a bound introduced by this call
|
= help: the trait `Sync` is not implemented for `dyn Future<Output = ()> + Send`
= help: the trait `Sync` is not implemented for `dyn Future<Output = ()> + Send`, which is required by `Pin<Box<dyn Future<Output = ()> + Send>>: Sync`
= note: required for `Unique<dyn Future<Output = ()> + Send>` to implement `Sync`
note: required because it appears within the type `Box<dyn Future<Output = ()> + Send>`
--> $RUST/alloc/src/boxed.rs
Expand All @@ -16,7 +16,7 @@ note: required because it appears within the type `Box<dyn Future<Output = ()> +
note: required because it appears within the type `Pin<Box<dyn Future<Output = ()> + Send>>`
--> $RUST/core/src/pin.rs
|
| pub struct Pin<P> {
| pub struct Pin<Ptr> {
| ^^^
note: required by a bound in `assert_is_sync`
--> tests/ui/arg_not_sync.rs:3:27
Expand All @@ -32,7 +32,7 @@ error[E0277]: `dyn Future<Output = ()>` cannot be shared between threads safely
| |
| required by a bound introduced by this call
|
= help: the trait `Sync` is not implemented for `dyn Future<Output = ()>`
= help: the trait `Sync` is not implemented for `dyn Future<Output = ()>`, which is required by `Pin<Box<dyn Future<Output = ()>>>: Sync`
= note: required for `Unique<dyn Future<Output = ()>>` to implement `Sync`
note: required because it appears within the type `Box<dyn Future<Output = ()>>`
--> $RUST/alloc/src/boxed.rs
Expand All @@ -42,7 +42,7 @@ note: required because it appears within the type `Box<dyn Future<Output = ()>>`
note: required because it appears within the type `Pin<Box<dyn Future<Output = ()>>>`
--> $RUST/core/src/pin.rs
|
| pub struct Pin<P> {
| pub struct Pin<Ptr> {
| ^^^
note: required by a bound in `assert_is_sync`
--> tests/ui/arg_not_sync.rs:3:27
Expand Down