error[E0277]: `*const u8` cannot be sent between threads safely --> tests/ui/autotraits.rs:15:5 | 15 | require_send::>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const u8` cannot be sent between threads safely | = help: the trait `Send` is not implemented for `*const u8` note: required because of the requirements on the impl of `Send` for `TypeParam<*const u8>` --> tests/ui/autotraits.rs:3:1 | 3 | #[phantom] | ^^^^^^^^^^ note: required because it appears within the type `__void_MyPhantom::MyPhantom<*const u8>` --> tests/ui/autotraits.rs:4:8 | 4 | struct MyPhantom; | ^^^^^^^^^ note: required because it appears within the type `MyPhantom<*const u8>` --> tests/ui/autotraits.rs:4:8 | 4 | struct MyPhantom; | ^^^^^^^^^ note: required by a bound in `require_send` --> tests/ui/autotraits.rs:6:20 | 6 | fn require_send() {} | ^^^^ required by this bound in `require_send` = note: this error originates in the attribute macro `phantom` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `*const u8` cannot be shared between threads safely --> tests/ui/autotraits.rs:16:5 | 16 | require_sync::>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const u8` cannot be shared between threads safely | = help: the trait `Sync` is not implemented for `*const u8` note: required because of the requirements on the impl of `Sync` for `TypeParam<*const u8>` --> tests/ui/autotraits.rs:3:1 | 3 | #[phantom] | ^^^^^^^^^^ note: required because it appears within the type `__void_MyPhantom::MyPhantom<*const u8>` --> tests/ui/autotraits.rs:4:8 | 4 | struct MyPhantom; | ^^^^^^^^^ note: required because it appears within the type `MyPhantom<*const u8>` --> tests/ui/autotraits.rs:4:8 | 4 | struct MyPhantom; | ^^^^^^^^^ note: required by a bound in `require_sync` --> tests/ui/autotraits.rs:7:20 | 7 | fn require_sync() {} | ^^^^ required by this bound in `require_sync` = note: this error originates in the attribute macro `phantom` (in Nightly builds, run with -Z macro-backtrace for more info)