1 error: some fields in `NoGeneric` are not safe to be sent to another thread
4 LL | unsafe impl Send for NoGeneric {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::non-send-fields-in-send-ty` implied by `-D warnings`
8 note: it is not safe to send field `rc_is_not_send` to another thread
11 LL | rc_is_not_send: Rc<String>,
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
13 = help: use a thread-safe type that implements `Send`
15 error: some fields in `MultiField<T>` are not safe to be sent to another thread
18 LL | unsafe impl<T> Send for MultiField<T> {}
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 note: it is not safe to send field `field1` to another thread
26 = help: add `T: Send` bound in `Send` impl
27 note: it is not safe to send field `field2` to another thread
32 = help: add `T: Send` bound in `Send` impl
33 note: it is not safe to send field `field3` to another thread
38 = help: add `T: Send` bound in `Send` impl
40 error: some fields in `MyOption<T>` are not safe to be sent to another thread
43 LL | unsafe impl<T> Send for MyOption<T> {}
44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46 note: it is not safe to send field `0` to another thread
47 --> $DIR/test.rs:22:12
51 = help: add `T: Send` bound in `Send` impl
53 error: some fields in `HeuristicTest` are not safe to be sent to another thread
56 LL | unsafe impl Send for HeuristicTest {}
57 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
59 note: it is not safe to send field `field1` to another thread
62 LL | field1: Vec<*const NonSend>,
63 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
64 = help: use a thread-safe type that implements `Send`
65 note: it is not safe to send field `field2` to another thread
68 LL | field2: [*const NonSend; 3],
69 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
70 = help: use a thread-safe type that implements `Send`
71 note: it is not safe to send field `field3` to another thread
74 LL | field3: (*const NonSend, *const NonSend, *const NonSend),
75 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
76 = help: use a thread-safe type that implements `Send`
77 note: it is not safe to send field `field4` to another thread
80 LL | field4: (*const NonSend, Rc<u8>),
81 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
82 = help: use a thread-safe type that implements `Send`
83 note: it is not safe to send field `field5` to another thread
86 LL | field5: Vec<Vec<*const NonSend>>,
87 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
88 = help: use a thread-safe type that implements `Send`
90 error: aborting due to 4 previous errors