| 1 |
error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied |
| 2 |
--> tests/ui-stable/derive_transparent.rs:34:23 |
| 3 |
| |
| 4 |
34 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: TryFromBytes); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` |
| 6 |
| |
| 7 |
= note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` |
| 8 |
= help: the following other types implement trait `zerocopy::TryFromBytes`: |
| 9 |
() |
| 10 |
*const T |
| 11 |
*mut T |
| 12 |
AU16 |
| 13 |
AtomicBool |
| 14 |
AtomicI16 |
| 15 |
AtomicI32 |
| 16 |
AtomicI64 |
| 17 |
and $N others |
| 18 |
note: required for `TransparentStruct<NotZerocopy>` to implement `zerocopy::TryFromBytes` |
| 19 |
--> tests/ui-stable/derive_transparent.rs:24:21 |
| 20 |
| |
| 21 |
24 | #[derive(IntoBytes, FromBytes, Unaligned)] |
| 22 |
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro |
| 23 |
note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all` |
| 24 |
--> tests/ui-stable/derive_transparent.rs:34:1 |
| 25 |
| |
| 26 |
34 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: TryFromBytes); |
| 27 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all` |
| 28 |
= note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `util_assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 29 |
|
| 30 |
error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied |
| 31 |
--> tests/ui-stable/derive_transparent.rs:35:23 |
| 32 |
| |
| 33 |
35 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeros); |
| 34 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromZeros` is not implemented for `NotZerocopy` |
| 35 |
| |
| 36 |
= note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy` |
| 37 |
= help: the following other types implement trait `FromZeros`: |
| 38 |
() |
| 39 |
*const T |
| 40 |
*mut T |
| 41 |
AU16 |
| 42 |
AtomicBool |
| 43 |
AtomicI16 |
| 44 |
AtomicI32 |
| 45 |
AtomicI64 |
| 46 |
and $N others |
| 47 |
note: required for `TransparentStruct<NotZerocopy>` to implement `FromZeros` |
| 48 |
--> tests/ui-stable/derive_transparent.rs:24:21 |
| 49 |
| |
| 50 |
24 | #[derive(IntoBytes, FromBytes, Unaligned)] |
| 51 |
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro |
| 52 |
note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all` |
| 53 |
--> tests/ui-stable/derive_transparent.rs:35:1 |
| 54 |
| |
| 55 |
35 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeros); |
| 56 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all` |
| 57 |
= note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `util_assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 58 |
|
| 59 |
error[E0277]: the trait bound `NotZerocopy: zerocopy::FromBytes` is not satisfied |
| 60 |
--> tests/ui-stable/derive_transparent.rs:36:23 |
| 61 |
| |
| 62 |
36 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes); |
| 63 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy` |
| 64 |
| |
| 65 |
= note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy` |
| 66 |
= help: the following other types implement trait `zerocopy::FromBytes`: |
| 67 |
() |
| 68 |
AU16 |
| 69 |
AtomicI16 |
| 70 |
AtomicI32 |
| 71 |
AtomicI64 |
| 72 |
AtomicI8 |
| 73 |
AtomicIsize |
| 74 |
AtomicU16 |
| 75 |
and $N others |
| 76 |
note: required for `TransparentStruct<NotZerocopy>` to implement `zerocopy::FromBytes` |
| 77 |
--> tests/ui-stable/derive_transparent.rs:24:21 |
| 78 |
| |
| 79 |
24 | #[derive(IntoBytes, FromBytes, Unaligned)] |
| 80 |
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro |
| 81 |
note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all` |
| 82 |
--> tests/ui-stable/derive_transparent.rs:36:1 |
| 83 |
| |
| 84 |
36 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes); |
| 85 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all` |
| 86 |
= note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `util_assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 87 |
|
| 88 |
error[E0277]: the trait bound `NotZerocopy: zerocopy::IntoBytes` is not satisfied |
| 89 |
--> tests/ui-stable/derive_transparent.rs:37:23 |
| 90 |
| |
| 91 |
37 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: IntoBytes); |
| 92 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` |
| 93 |
| |
| 94 |
= note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy` |
| 95 |
= help: the following other types implement trait `zerocopy::IntoBytes`: |
| 96 |
() |
| 97 |
AU16 |
| 98 |
AtomicBool |
| 99 |
AtomicI16 |
| 100 |
AtomicI32 |
| 101 |
AtomicI64 |
| 102 |
AtomicI8 |
| 103 |
AtomicIsize |
| 104 |
and $N others |
| 105 |
note: required for `TransparentStruct<NotZerocopy>` to implement `zerocopy::IntoBytes` |
| 106 |
--> tests/ui-stable/derive_transparent.rs:24:10 |
| 107 |
| |
| 108 |
24 | #[derive(IntoBytes, FromBytes, Unaligned)] |
| 109 |
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro |
| 110 |
note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all` |
| 111 |
--> tests/ui-stable/derive_transparent.rs:37:1 |
| 112 |
| |
| 113 |
37 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: IntoBytes); |
| 114 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all` |
| 115 |
= note: this error originates in the derive macro `IntoBytes` which comes from the expansion of the macro `util_assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 116 |
|
| 117 |
error[E0277]: the trait bound `NotZerocopy: zerocopy::Unaligned` is not satisfied |
| 118 |
--> tests/ui-stable/derive_transparent.rs:38:23 |
| 119 |
| |
| 120 |
38 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned); |
| 121 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `NotZerocopy` |
| 122 |
| |
| 123 |
= note: Consider adding `#[derive(Unaligned)]` to `NotZerocopy` |
| 124 |
= help: the following other types implement trait `zerocopy::Unaligned`: |
| 125 |
() |
| 126 |
AtomicBool |
| 127 |
AtomicI8 |
| 128 |
AtomicU8 |
| 129 |
Cell<T> |
| 130 |
F32<O> |
| 131 |
F64<O> |
| 132 |
I128<O> |
| 133 |
and $N others |
| 134 |
note: required for `TransparentStruct<NotZerocopy>` to implement `zerocopy::Unaligned` |
| 135 |
--> tests/ui-stable/derive_transparent.rs:24:32 |
| 136 |
| |
| 137 |
24 | #[derive(IntoBytes, FromBytes, Unaligned)] |
| 138 |
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro |
| 139 |
note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all` |
| 140 |
--> tests/ui-stable/derive_transparent.rs:38:1 |
| 141 |
| |
| 142 |
38 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned); |
| 143 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all` |
| 144 |
= note: this error originates in the derive macro `Unaligned` which comes from the expansion of the macro `util_assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info) |