]>
Commit | Line | Data |
---|---|---|
ff7c6d11 XL |
1 | error[E0277]: the trait bound `*mut std::ops::Fn() + 'static: std::marker::Sync` is not satisfied in `[std::fmt::ArgumentV1<'_>]` |
2 | --> $DIR/send-sync.rs:18:5 | |
3 | | | |
4 | 18 | send(format_args!("{:?}", c)); //~ ERROR Sync` is not satisfied | |
5 | | ^^^^ `*mut std::ops::Fn() + 'static` cannot be shared between threads safely | |
6 | | | |
7 | = help: within `[std::fmt::ArgumentV1<'_>]`, the trait `std::marker::Sync` is not implemented for `*mut std::ops::Fn() + 'static` | |
8 | = note: required because it appears within the type `std::marker::PhantomData<*mut std::ops::Fn() + 'static>` | |
9 | = note: required because it appears within the type `core::fmt::Void` | |
10 | = note: required because it appears within the type `&core::fmt::Void` | |
11 | = note: required because it appears within the type `std::fmt::ArgumentV1<'_>` | |
12 | = note: required because it appears within the type `[std::fmt::ArgumentV1<'_>]` | |
13 | = note: required because of the requirements on the impl of `std::marker::Send` for `&[std::fmt::ArgumentV1<'_>]` | |
14 | = note: required because it appears within the type `std::fmt::Arguments<'_>` | |
2c00a5a8 XL |
15 | note: required by `send` |
16 | --> $DIR/send-sync.rs:11:1 | |
17 | | | |
18 | 11 | fn send<T: Send>(_: T) {} | |
19 | | ^^^^^^^^^^^^^^^^^^^^^^ | |
ff7c6d11 XL |
20 | |
21 | error[E0277]: the trait bound `*mut std::ops::Fn() + 'static: std::marker::Sync` is not satisfied in `std::fmt::Arguments<'_>` | |
22 | --> $DIR/send-sync.rs:19:5 | |
23 | | | |
24 | 19 | sync(format_args!("{:?}", c)); //~ ERROR Sync` is not satisfied | |
25 | | ^^^^ `*mut std::ops::Fn() + 'static` cannot be shared between threads safely | |
26 | | | |
27 | = help: within `std::fmt::Arguments<'_>`, the trait `std::marker::Sync` is not implemented for `*mut std::ops::Fn() + 'static` | |
28 | = note: required because it appears within the type `std::marker::PhantomData<*mut std::ops::Fn() + 'static>` | |
29 | = note: required because it appears within the type `core::fmt::Void` | |
30 | = note: required because it appears within the type `&core::fmt::Void` | |
31 | = note: required because it appears within the type `std::fmt::ArgumentV1<'_>` | |
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::Arguments<'_>` | |
2c00a5a8 XL |
35 | note: required by `sync` |
36 | --> $DIR/send-sync.rs:12:1 | |
37 | | | |
38 | 12 | fn sync<T: Sync>(_: T) {} | |
39 | | ^^^^^^^^^^^^^^^^^^^^^^ | |
ff7c6d11 XL |
40 | |
41 | error: aborting due to 2 previous errors | |
42 |