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