error[E0277]: `proc_macro::Span` cannot be sent between threads safely --> test-not-send.rs:5:21 | 5 | requires_send::(); | ^^^^ `proc_macro::Span` cannot be sent between threads safely | = help: within `Span`, the trait `Send` is not implemented for `proc_macro::Span` note: required because it appears within the type `proc_macro2::imp::Span` --> $WORKSPACE/src/wrapper.rs | | pub(crate) enum Span { | ^^^^ note: required because it appears within the type `Span` --> $WORKSPACE/src/lib.rs | | pub struct Span { | ^^^^ note: required by a bound in `requires_send` --> test-not-send.rs:4:25 | 4 | fn requires_send() {} | ^^^^ required by this bound in `requires_send` error[E0277]: `Rc<()>` cannot be sent between threads safely --> test-not-send.rs:5:21 | 5 | requires_send::(); | ^^^^ `Rc<()>` cannot be sent between threads safely | = help: within `Span`, the trait `Send` is not implemented for `Rc<()>` note: required because it appears within the type `PhantomData>` --> $RUST/core/src/marker.rs | | pub struct PhantomData; | ^^^^^^^^^^^ note: required because it appears within the type `proc_macro2::marker::ProcMacroAutoTraits` --> $WORKSPACE/src/marker.rs | | pub(crate) struct ProcMacroAutoTraits(PhantomData>); | ^^^^^^^^^^^^^^^^^^^ note: required because it appears within the type `Span` --> $WORKSPACE/src/lib.rs | | pub struct Span { | ^^^^ note: required by a bound in `requires_send` --> test-not-send.rs:4:25 | 4 | fn requires_send() {} | ^^^^ required by this bound in `requires_send`