]> git.proxmox.com Git - rustc.git/blame - src/test/ui/fmt/send-sync.stderr
New upstream version 1.42.0+dfsg1
[rustc.git] / src / test / ui / fmt / send-sync.stderr
CommitLineData
8faf50e0 1error[E0277]: `*mut (dyn std::ops::Fn() + 'static)` cannot be shared between threads safely
0731742a 2 --> $DIR/send-sync.rs:8:5
ff7c6d11 3 |
e1599b0c
XL
4LL | fn send<T: Send>(_: T) {}
5 | ---- ---- required by this bound in `send`
6...
532ac7d7 7LL | send(format_args!("{:?}", c));
8faf50e0 8 | ^^^^ `*mut (dyn std::ops::Fn() + 'static)` cannot be shared between threads safely
ff7c6d11 9 |
8faf50e0
XL
10 = help: within `[std::fmt::ArgumentV1<'_>]`, the trait `std::marker::Sync` is not implemented for `*mut (dyn std::ops::Fn() + 'static)`
11 = note: required because it appears within the type `std::marker::PhantomData<*mut (dyn std::ops::Fn() + 'static)>`
ff7c6d11
XL
12 = note: required because it appears within the type `core::fmt::Void`
13 = note: required because it appears within the type `&core::fmt::Void`
14 = note: required because it appears within the type `std::fmt::ArgumentV1<'_>`
15 = note: required because it appears within the type `[std::fmt::ArgumentV1<'_>]`
16 = note: required because of the requirements on the impl of `std::marker::Send` for `&[std::fmt::ArgumentV1<'_>]`
17 = note: required because it appears within the type `std::fmt::Arguments<'_>`
ff7c6d11 18
8faf50e0 19error[E0277]: `*mut (dyn std::ops::Fn() + 'static)` cannot be shared between threads safely
0731742a 20 --> $DIR/send-sync.rs:9:5
ff7c6d11 21 |
e1599b0c
XL
22LL | fn sync<T: Sync>(_: T) {}
23 | ---- ---- required by this bound in `sync`
24...
532ac7d7 25LL | sync(format_args!("{:?}", c));
8faf50e0 26 | ^^^^ `*mut (dyn std::ops::Fn() + 'static)` cannot be shared between threads safely
ff7c6d11 27 |
8faf50e0
XL
28 = help: within `std::fmt::Arguments<'_>`, the trait `std::marker::Sync` is not implemented for `*mut (dyn std::ops::Fn() + 'static)`
29 = note: required because it appears within the type `std::marker::PhantomData<*mut (dyn std::ops::Fn() + 'static)>`
ff7c6d11
XL
30 = note: required because it appears within the type `core::fmt::Void`
31 = note: required because it appears within the type `&core::fmt::Void`
32 = note: required because it appears within the type `std::fmt::ArgumentV1<'_>`
33 = note: required because it appears within the type `[std::fmt::ArgumentV1<'_>]`
34 = note: required because it appears within the type `&[std::fmt::ArgumentV1<'_>]`
35 = note: required because it appears within the type `std::fmt::Arguments<'_>`
ff7c6d11
XL
36
37error: aborting due to 2 previous errors
38
0531ce1d 39For more information about this error, try `rustc --explain E0277`.