error[E0277]: `*const ()` cannot be sent between threads safely --> $DIR/non_send.rs:12:24 | 12 | let _: &dyn Send = &mock; | ^^^^^ `*const ()` cannot be sent between threads safely | = help: within `AMock`, the trait `Send` is not implemented for `*const ()` = note: required because it appears within the type `((), *const ())` note: required because it appears within the type `PhantomData<((), *const ())>` --> $DIR/marker.rs:809:12 note: required because it appears within the type `AMock` --> $DIR/non_send.rs:6:1 | 6 | #[mocked] | ^^^^^^^^^ = note: required for the cast from `&AMock` to `&dyn Send` = note: this error originates in the attribute macro `mocked` (in Nightly builds, run with -Z macro-backtrace for more info)