]>
Commit | Line | Data |
---|---|---|
74b04a01 | 1 | error[E0277]: `core::fmt::Opaque` cannot be shared between threads safely |
f2b60f7d | 2 | --> $DIR/send-sync.rs:8:10 |
ff7c6d11 | 3 | | |
532ac7d7 | 4 | LL | send(format_args!("{:?}", c)); |
f2b60f7d FG |
5 | | ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::Opaque` cannot be shared between threads safely |
6 | | | | |
7 | | required by a bound introduced by this call | |
ff7c6d11 | 8 | | |
1b1a35ee | 9 | = help: within `[ArgumentV1<'_>]`, the trait `Sync` is not implemented for `core::fmt::Opaque` |
74b04a01 | 10 | = note: required because it appears within the type `&core::fmt::Opaque` |
1b1a35ee XL |
11 | = note: required because it appears within the type `ArgumentV1<'_>` |
12 | = note: required because it appears within the type `[ArgumentV1<'_>]` | |
f2b60f7d | 13 | = note: required for `&[ArgumentV1<'_>]` to implement `Send` |
1b1a35ee | 14 | = note: required because it appears within the type `Arguments<'_>` |
94222f64 XL |
15 | note: required by a bound in `send` |
16 | --> $DIR/send-sync.rs:1:12 | |
17 | | | |
18 | LL | fn send<T: Send>(_: T) {} | |
19 | | ^^^^ required by this bound in `send` | |
ff7c6d11 | 20 | |
74b04a01 | 21 | error[E0277]: `core::fmt::Opaque` cannot be shared between threads safely |
f2b60f7d | 22 | --> $DIR/send-sync.rs:9:10 |
ff7c6d11 | 23 | | |
532ac7d7 | 24 | LL | sync(format_args!("{:?}", c)); |
f2b60f7d FG |
25 | | ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::Opaque` cannot be shared between threads safely |
26 | | | | |
27 | | required by a bound introduced by this call | |
ff7c6d11 | 28 | | |
1b1a35ee | 29 | = help: within `Arguments<'_>`, the trait `Sync` is not implemented for `core::fmt::Opaque` |
74b04a01 | 30 | = note: required because it appears within the type `&core::fmt::Opaque` |
1b1a35ee XL |
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<'_>` | |
94222f64 XL |
35 | note: required by a bound in `sync` |
36 | --> $DIR/send-sync.rs:2:12 | |
37 | | | |
38 | LL | fn sync<T: Sync>(_: T) {} | |
39 | | ^^^^ required by this bound in `sync` | |
ff7c6d11 XL |
40 | |
41 | error: aborting due to 2 previous errors | |
42 | ||
0531ce1d | 43 | For more information about this error, try `rustc --explain E0277`. |