| 1 |
error[E0277]: the trait bound `NotZerocopy: FromZeroes` is not satisfied |
| 2 |
--> tests/ui-stable/derive_transparent.rs:37:18 |
| 3 |
| |
| 4 |
37 | assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeroes); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromZeroes` is not implemented for `NotZerocopy` |
| 6 |
| |
| 7 |
= help: the following other types implement trait `FromZeroes`: |
| 8 |
bool |
| 9 |
char |
| 10 |
isize |
| 11 |
i8 |
| 12 |
i16 |
| 13 |
i32 |
| 14 |
i64 |
| 15 |
i128 |
| 16 |
and $N others |
| 17 |
note: required for `TransparentStruct<NotZerocopy>` to implement `FromZeroes` |
| 18 |
--> tests/ui-stable/derive_transparent.rs:27:19 |
| 19 |
| |
| 20 |
27 | #[derive(AsBytes, FromZeroes, FromBytes, Unaligned)] |
| 21 |
| ^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro |
| 22 |
note: required by a bound in `_::{closure#0}::assert_impl_all` |
| 23 |
--> tests/ui-stable/derive_transparent.rs:37:1 |
| 24 |
| |
| 25 |
37 | assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeroes); |
| 26 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all` |
| 27 |
= note: this error originates in the derive macro `FromZeroes` which comes from the expansion of the macro `assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 28 |
|
| 29 |
error[E0277]: the trait bound `NotZerocopy: FromBytes` is not satisfied |
| 30 |
--> tests/ui-stable/derive_transparent.rs:38:18 |
| 31 |
| |
| 32 |
38 | assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes); |
| 33 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `NotZerocopy` |
| 34 |
| |
| 35 |
= help: the following other types implement trait `FromBytes`: |
| 36 |
isize |
| 37 |
i8 |
| 38 |
i16 |
| 39 |
i32 |
| 40 |
i64 |
| 41 |
i128 |
| 42 |
usize |
| 43 |
u8 |
| 44 |
and $N others |
| 45 |
note: required for `TransparentStruct<NotZerocopy>` to implement `FromBytes` |
| 46 |
--> tests/ui-stable/derive_transparent.rs:27:31 |
| 47 |
| |
| 48 |
27 | #[derive(AsBytes, FromZeroes, FromBytes, Unaligned)] |
| 49 |
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro |
| 50 |
note: required by a bound in `_::{closure#0}::assert_impl_all` |
| 51 |
--> tests/ui-stable/derive_transparent.rs:38:1 |
| 52 |
| |
| 53 |
38 | assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes); |
| 54 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all` |
| 55 |
= note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 56 |
|
| 57 |
error[E0277]: the trait bound `NotZerocopy: AsBytes` is not satisfied |
| 58 |
--> tests/ui-stable/derive_transparent.rs:39:18 |
| 59 |
| |
| 60 |
39 | assert_impl_all!(TransparentStruct<NotZerocopy>: AsBytes); |
| 61 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AsBytes` is not implemented for `NotZerocopy` |
| 62 |
| |
| 63 |
= help: the following other types implement trait `AsBytes`: |
| 64 |
bool |
| 65 |
char |
| 66 |
isize |
| 67 |
i8 |
| 68 |
i16 |
| 69 |
i32 |
| 70 |
i64 |
| 71 |
i128 |
| 72 |
and $N others |
| 73 |
note: required for `TransparentStruct<NotZerocopy>` to implement `AsBytes` |
| 74 |
--> tests/ui-stable/derive_transparent.rs:27:10 |
| 75 |
| |
| 76 |
27 | #[derive(AsBytes, FromZeroes, FromBytes, Unaligned)] |
| 77 |
| ^^^^^^^ unsatisfied trait bound introduced in this `derive` macro |
| 78 |
note: required by a bound in `_::{closure#0}::assert_impl_all` |
| 79 |
--> tests/ui-stable/derive_transparent.rs:39:1 |
| 80 |
| |
| 81 |
39 | assert_impl_all!(TransparentStruct<NotZerocopy>: AsBytes); |
| 82 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all` |
| 83 |
= note: this error originates in the derive macro `AsBytes` which comes from the expansion of the macro `assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 84 |
|
| 85 |
error[E0277]: the trait bound `NotZerocopy: Unaligned` is not satisfied |
| 86 |
--> tests/ui-stable/derive_transparent.rs:40:18 |
| 87 |
| |
| 88 |
40 | assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned); |
| 89 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unaligned` is not implemented for `NotZerocopy` |
| 90 |
| |
| 91 |
= help: the following other types implement trait `Unaligned`: |
| 92 |
bool |
| 93 |
i8 |
| 94 |
u8 |
| 95 |
TransparentStruct<T> |
| 96 |
U16<O> |
| 97 |
U32<O> |
| 98 |
U64<O> |
| 99 |
U128<O> |
| 100 |
and $N others |
| 101 |
note: required for `TransparentStruct<NotZerocopy>` to implement `Unaligned` |
| 102 |
--> tests/ui-stable/derive_transparent.rs:27:42 |
| 103 |
| |
| 104 |
27 | #[derive(AsBytes, FromZeroes, FromBytes, Unaligned)] |
| 105 |
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro |
| 106 |
note: required by a bound in `_::{closure#0}::assert_impl_all` |
| 107 |
--> tests/ui-stable/derive_transparent.rs:40:1 |
| 108 |
| |
| 109 |
40 | assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned); |
| 110 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all` |
| 111 |
= note: this error originates in the derive macro `Unaligned` which comes from the expansion of the macro `assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info) |