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