1 error[E0277]: `core::fmt::Opaque` cannot be shared between threads safely
2 --> $DIR/send-sync.rs:8:10
4 LL | send(format_args!("{:?}", c));
5 | ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::Opaque` cannot be shared between threads safely
7 | required by a bound introduced by this call
9 = help: within `[ArgumentV1<'_>]`, the trait `Sync` is not implemented for `core::fmt::Opaque`
10 = note: required because it appears within the type `&core::fmt::Opaque`
11 = note: required because it appears within the type `ArgumentV1<'_>`
12 = note: required because it appears within the type `[ArgumentV1<'_>]`
13 = note: required for `&[ArgumentV1<'_>]` to implement `Send`
14 = note: required because it appears within the type `Arguments<'_>`
15 note: required by a bound in `send`
16 --> $DIR/send-sync.rs:1:12
18 LL | fn send<T: Send>(_: T) {}
19 | ^^^^ required by this bound in `send`
21 error[E0277]: `core::fmt::Opaque` cannot be shared between threads safely
22 --> $DIR/send-sync.rs:9:10
24 LL | sync(format_args!("{:?}", c));
25 | ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::Opaque` cannot be shared between threads safely
27 | required by a bound introduced by this call
29 = help: within `Arguments<'_>`, the trait `Sync` is not implemented for `core::fmt::Opaque`
30 = note: required because it appears within the type `&core::fmt::Opaque`
31 = note: required because it appears within the type `ArgumentV1<'_>`
32 = note: required because it appears within the type `[ArgumentV1<'_>]`
33 = note: required because it appears within the type `&[ArgumentV1<'_>]`
34 = note: required because it appears within the type `Arguments<'_>`
35 note: required by a bound in `sync`
36 --> $DIR/send-sync.rs:2:12
38 LL | fn sync<T: Sync>(_: T) {}
39 | ^^^^ required by this bound in `sync`
41 error: aborting due to 2 previous errors
43 For more information about this error, try `rustc --explain E0277`.