Debian Codegraph @

debian/missing-sources/glib/tests/subclass_compiletest/06-no-auto-send-sync-with-non-send-sync-ffi-parent.stderr

raw
1 error[E0277]: `*mut c_void` cannot be sent between threads safely
2 --> tests/subclass_compiletest/06-no-auto-send-sync-with-non-send-sync-ffi-parent.rs:54:11
3 |
4 54 | check(&obj);
5 | ----- ^^^^ `*mut c_void` cannot be sent between threads safely
6 | |
7 | required by a bound introduced by this call
8 |
9 = help: the trait `Send` is not implemented for `*mut c_void`
10 = note: required for `TypedObjectRef<*mut c_void, ()>` to implement `Send`
11 note: required because it appears within the type `InitiallyUnowned`
12 --> tests/subclass_compiletest/06-no-auto-send-sync-with-non-send-sync-ffi-parent.rs:3:16
13 |
14 3 | pub struct InitiallyUnowned(Object<glib::gobject_ffi::GInitiallyUnowned, glib::gobject_ffi::GInitiallyUnownedClass>);
15 | ^^^^^^^^^^^^^^^^
16 = note: required for `TypedObjectRef<imp_object::TestObject, InitiallyUnowned>` to implement `Send`
17 note: required because it appears within the type `TestObject`
18 --> tests/subclass_compiletest/06-no-auto-send-sync-with-non-send-sync-ffi-parent.rs:41:16
19 |
20 41 | pub struct TestObject(ObjectSubclass<imp_object::TestObject>) @extends InitiallyUnowned;
21 | ^^^^^^^^^^
22 note: required by a bound in `main::check`
23 --> tests/subclass_compiletest/06-no-auto-send-sync-with-non-send-sync-ffi-parent.rs:51:17
24 |
25 51 | fn check<T: Send + Sync>(_obj: &T) {}
26 | ^^^^ required by this bound in `check`
27
28 error[E0277]: `*mut c_void` cannot be shared between threads safely
29 --> tests/subclass_compiletest/06-no-auto-send-sync-with-non-send-sync-ffi-parent.rs:54:11
30 |
31 54 | check(&obj);
32 | ----- ^^^^ `*mut c_void` cannot be shared between threads safely
33 | |
34 | required by a bound introduced by this call
35 |
36 = help: the trait `Sync` is not implemented for `*mut c_void`
37 = note: required for `TypedObjectRef<*mut c_void, ()>` to implement `Send`
38 note: required because it appears within the type `InitiallyUnowned`
39 --> tests/subclass_compiletest/06-no-auto-send-sync-with-non-send-sync-ffi-parent.rs:3:16
40 |
41 3 | pub struct InitiallyUnowned(Object<glib::gobject_ffi::GInitiallyUnowned, glib::gobject_ffi::GInitiallyUnownedClass>);
42 | ^^^^^^^^^^^^^^^^
43 = note: required for `TypedObjectRef<imp_object::TestObject, InitiallyUnowned>` to implement `Send`
44 note: required because it appears within the type `TestObject`
45 --> tests/subclass_compiletest/06-no-auto-send-sync-with-non-send-sync-ffi-parent.rs:41:16
46 |
47 41 | pub struct TestObject(ObjectSubclass<imp_object::TestObject>) @extends InitiallyUnowned;
48 | ^^^^^^^^^^
49 note: required by a bound in `main::check`
50 --> tests/subclass_compiletest/06-no-auto-send-sync-with-non-send-sync-ffi-parent.rs:51:17
51 |
52 51 | fn check<T: Send + Sync>(_obj: &T) {}
53 | ^^^^ required by this bound in `check`