| 1 |
error[E0277]: `*const u8` cannot be sent between threads safely |
| 2 |
--> tests/ui/autotraits.rs:15:5 |
| 3 |
| |
| 4 |
15 | require_send::<MyPhantom<*const u8>>(); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const u8` cannot be sent between threads safely |
| 6 |
| |
| 7 |
= help: the trait `Send` is not implemented for `*const u8` |
| 8 |
note: required because of the requirements on the impl of `Send` for `TypeParam<*const u8>` |
| 9 |
--> tests/ui/autotraits.rs:3:1 |
| 10 |
| |
| 11 |
3 | #[phantom] |
| 12 |
| ^^^^^^^^^^ |
| 13 |
note: required because it appears within the type `__void_MyPhantom::MyPhantom<*const u8>` |
| 14 |
--> tests/ui/autotraits.rs:4:8 |
| 15 |
| |
| 16 |
4 | struct MyPhantom<T: ?Sized>; |
| 17 |
| ^^^^^^^^^ |
| 18 |
note: required because it appears within the type `MyPhantom<*const u8>` |
| 19 |
--> tests/ui/autotraits.rs:4:8 |
| 20 |
| |
| 21 |
4 | struct MyPhantom<T: ?Sized>; |
| 22 |
| ^^^^^^^^^ |
| 23 |
note: required by a bound in `require_send` |
| 24 |
--> tests/ui/autotraits.rs:6:20 |
| 25 |
| |
| 26 |
6 | fn require_send<T: Send>() {} |
| 27 |
| ^^^^ required by this bound in `require_send` |
| 28 |
= note: this error originates in the attribute macro `phantom` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 29 |
|
| 30 |
error[E0277]: `*const u8` cannot be shared between threads safely |
| 31 |
--> tests/ui/autotraits.rs:16:5 |
| 32 |
| |
| 33 |
16 | require_sync::<MyPhantom<*const u8>>(); |
| 34 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const u8` cannot be shared between threads safely |
| 35 |
| |
| 36 |
= help: the trait `Sync` is not implemented for `*const u8` |
| 37 |
note: required because of the requirements on the impl of `Sync` for `TypeParam<*const u8>` |
| 38 |
--> tests/ui/autotraits.rs:3:1 |
| 39 |
| |
| 40 |
3 | #[phantom] |
| 41 |
| ^^^^^^^^^^ |
| 42 |
note: required because it appears within the type `__void_MyPhantom::MyPhantom<*const u8>` |
| 43 |
--> tests/ui/autotraits.rs:4:8 |
| 44 |
| |
| 45 |
4 | struct MyPhantom<T: ?Sized>; |
| 46 |
| ^^^^^^^^^ |
| 47 |
note: required because it appears within the type `MyPhantom<*const u8>` |
| 48 |
--> tests/ui/autotraits.rs:4:8 |
| 49 |
| |
| 50 |
4 | struct MyPhantom<T: ?Sized>; |
| 51 |
| ^^^^^^^^^ |
| 52 |
note: required by a bound in `require_sync` |
| 53 |
--> tests/ui/autotraits.rs:7:20 |
| 54 |
| |
| 55 |
7 | fn require_sync<T: Sync>() {} |
| 56 |
| ^^^^ required by this bound in `require_sync` |
| 57 |
= note: this error originates in the attribute macro `phantom` (in Nightly builds, run with -Z macro-backtrace for more info) |