]> git.lizzy.rs Git - rust.git/blob - tests/ui/fmt/send-sync.stderr
incremental: migrate diagnostics
[rust.git] / tests / ui / fmt / send-sync.stderr
1 error[E0277]: `core::fmt::Opaque` cannot be shared between threads safely
2   --> $DIR/send-sync.rs:8:10
3    |
4 LL |     send(format_args!("{:?}", c));
5    |     ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::Opaque` cannot be shared between threads safely
6    |     |
7    |     required by a bound introduced by this call
8    |
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
17    |
18 LL | fn send<T: Send>(_: T) {}
19    |            ^^^^ required by this bound in `send`
20
21 error[E0277]: `core::fmt::Opaque` cannot be shared between threads safely
22   --> $DIR/send-sync.rs:9:10
23    |
24 LL |     sync(format_args!("{:?}", c));
25    |     ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::Opaque` cannot be shared between threads safely
26    |     |
27    |     required by a bound introduced by this call
28    |
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
37    |
38 LL | fn sync<T: Sync>(_: T) {}
39    |            ^^^^ required by this bound in `sync`
40
41 error: aborting due to 2 previous errors
42
43 For more information about this error, try `rustc --explain E0277`.