|
1 |
| -error[E0277]: `*mut (dyn std::ops::Fn() + 'static)` cannot be shared between threads safely |
| 1 | +error[E0277]: `core::fmt::Opaque` cannot be shared between threads safely |
2 | 2 | --> $DIR/send-sync.rs:8:5
|
3 | 3 | |
|
4 | 4 | LL | fn send<T: Send>(_: T) {}
|
5 | 5 | | ---- ---- required by this bound in `send`
|
6 | 6 | ...
|
7 | 7 | LL | send(format_args!("{:?}", c));
|
8 |
| - | ^^^^ `*mut (dyn std::ops::Fn() + 'static)` cannot be shared between threads safely |
| 8 | + | ^^^^ `core::fmt::Opaque` cannot be shared between threads safely |
9 | 9 | |
|
10 |
| - = help: within `[std::fmt::ArgumentV1<'_>]`, the trait `std::marker::Sync` is not implemented for `*mut (dyn std::ops::Fn() + 'static)` |
11 |
| - = note: required because it appears within the type `std::marker::PhantomData<*mut (dyn std::ops::Fn() + 'static)>` |
12 |
| - = note: required because it appears within the type `core::fmt::Void` |
13 |
| - = note: required because it appears within the type `&core::fmt::Void` |
| 10 | + = help: within `[std::fmt::ArgumentV1<'_>]`, the trait `std::marker::Sync` is not implemented for `core::fmt::Opaque` |
| 11 | + = note: required because it appears within the type `&core::fmt::Opaque` |
14 | 12 | = note: required because it appears within the type `std::fmt::ArgumentV1<'_>`
|
15 | 13 | = note: required because it appears within the type `[std::fmt::ArgumentV1<'_>]`
|
16 | 14 | = note: required because of the requirements on the impl of `std::marker::Send` for `&[std::fmt::ArgumentV1<'_>]`
|
17 | 15 | = note: required because it appears within the type `std::fmt::Arguments<'_>`
|
18 | 16 |
|
19 |
| -error[E0277]: `*mut (dyn std::ops::Fn() + 'static)` cannot be shared between threads safely |
| 17 | +error[E0277]: `core::fmt::Opaque` cannot be shared between threads safely |
20 | 18 | --> $DIR/send-sync.rs:9:5
|
21 | 19 | |
|
22 | 20 | LL | fn sync<T: Sync>(_: T) {}
|
23 | 21 | | ---- ---- required by this bound in `sync`
|
24 | 22 | ...
|
25 | 23 | LL | sync(format_args!("{:?}", c));
|
26 |
| - | ^^^^ `*mut (dyn std::ops::Fn() + 'static)` cannot be shared between threads safely |
| 24 | + | ^^^^ `core::fmt::Opaque` cannot be shared between threads safely |
27 | 25 | |
|
28 |
| - = help: within `std::fmt::Arguments<'_>`, the trait `std::marker::Sync` is not implemented for `*mut (dyn std::ops::Fn() + 'static)` |
29 |
| - = note: required because it appears within the type `std::marker::PhantomData<*mut (dyn std::ops::Fn() + 'static)>` |
30 |
| - = note: required because it appears within the type `core::fmt::Void` |
31 |
| - = note: required because it appears within the type `&core::fmt::Void` |
| 26 | + = help: within `std::fmt::Arguments<'_>`, the trait `std::marker::Sync` is not implemented for `core::fmt::Opaque` |
| 27 | + = note: required because it appears within the type `&core::fmt::Opaque` |
32 | 28 | = note: required because it appears within the type `std::fmt::ArgumentV1<'_>`
|
33 | 29 | = note: required because it appears within the type `[std::fmt::ArgumentV1<'_>]`
|
34 | 30 | = note: required because it appears within the type `&[std::fmt::ArgumentV1<'_>]`
|
|
0 commit comments