]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fmt/send-sync.stderr
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / fmt / send-sync.stderr
1 error[E0277]: `core::fmt::Opaque` cannot be shared between threads safely
2   --> $DIR/send-sync.rs:8:5
3    |
4 LL |     send(format_args!("{:?}", c));
5    |     ^^^^ `core::fmt::Opaque` cannot be shared between threads safely
6    |
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
15    |
16 LL | fn send<T: Send>(_: T) {}
17    |            ^^^^ required by this bound in `send`
18
19 error[E0277]: `core::fmt::Opaque` cannot be shared between threads safely
20   --> $DIR/send-sync.rs:9:5
21    |
22 LL |     sync(format_args!("{:?}", c));
23    |     ^^^^ `core::fmt::Opaque` cannot be shared between threads safely
24    |
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
33    |
34 LL | fn sync<T: Sync>(_: T) {}
35    |            ^^^^ required by this bound in `sync`
36
37 error: aborting due to 2 previous errors
38
39 For more information about this error, try `rustc --explain E0277`.