| 1 |
error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied |
| 2 |
--> $DIR/try_transmute.rs:15:33 |
| 3 |
| |
| 4 |
15 | let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0)); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 6 |
| |
| 7 |
help: the trait `TryFromBytes` is not implemented for `NotZerocopy` |
| 8 |
--> $DIR/../include.rs:15:5 |
| 9 |
| |
| 10 |
15 | pub struct NotZerocopy<T = ()>(pub T); |
| 11 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 12 |
= note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` |
| 13 |
= help: the following other types implement trait `TryFromBytes`: |
| 14 |
() |
| 15 |
(A, B) |
| 16 |
(A, B, C) |
| 17 |
(A, B, C, D) |
| 18 |
(A, B, C, D, E) |
| 19 |
(A, B, C, D, E, F) |
| 20 |
(A, B, C, D, E, F, G) |
| 21 |
(A, B, C, D, E, F, G, H) |
| 22 |
and 153 others |
| 23 |
note: required by a bound in `ValidityError` |
| 24 |
--> $WORKSPACE/src/error.rs:590:45 |
| 25 |
| |
| 26 |
590 | pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> { |
| 27 |
| ^^^^^^^^^^^^ required by this bound in `ValidityError` |
| 28 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 29 |
= note: consider using `--verbose` to print the full type name to the console |
| 30 |
|
| 31 |
error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied |
| 32 |
--> $DIR/try_transmute.rs:15:58 |
| 33 |
| |
| 34 |
15 | let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0)); |
| 35 |
| ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 36 |
| |
| 37 |
help: the trait `TryFromBytes` is not implemented for `NotZerocopy` |
| 38 |
--> $DIR/../include.rs:15:5 |
| 39 |
| |
| 40 |
15 | pub struct NotZerocopy<T = ()>(pub T); |
| 41 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 42 |
= note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` |
| 43 |
= help: the following other types implement trait `TryFromBytes`: |
| 44 |
() |
| 45 |
(A, B) |
| 46 |
(A, B, C) |
| 47 |
(A, B, C, D) |
| 48 |
(A, B, C, D, E) |
| 49 |
(A, B, C, D, E, F) |
| 50 |
(A, B, C, D, E, F, G) |
| 51 |
(A, B, C, D, E, F, G, H) |
| 52 |
and 153 others |
| 53 |
note: required by a bound in `try_transmute` |
| 54 |
--> $WORKSPACE/src/util/macro_util.rs:528:10 |
| 55 |
| |
| 56 |
525 | pub fn try_transmute<Src, Dst>(src: Src) -> Result<Dst, ValidityError<Src, Dst>> |
| 57 |
| ------------- required by a bound in this function |
| 58 |
... |
| 59 |
528 | Dst: TryFromBytes, |
| 60 |
| ^^^^^^^^^^^^ required by this bound in `try_transmute` |
| 61 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 62 |
= note: consider using `--verbose` to print the full type name to the console |
| 63 |
= note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 64 |
|
| 65 |
error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied |
| 66 |
--> $DIR/try_transmute.rs:15:58 |
| 67 |
| |
| 68 |
15 | let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0)); |
| 69 |
| ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 70 |
| |
| 71 |
help: the trait `TryFromBytes` is not implemented for `NotZerocopy` |
| 72 |
--> $DIR/../include.rs:15:5 |
| 73 |
| |
| 74 |
15 | pub struct NotZerocopy<T = ()>(pub T); |
| 75 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 76 |
= note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` |
| 77 |
= help: the following other types implement trait `TryFromBytes`: |
| 78 |
() |
| 79 |
(A, B) |
| 80 |
(A, B, C) |
| 81 |
(A, B, C, D) |
| 82 |
(A, B, C, D, E) |
| 83 |
(A, B, C, D, E, F) |
| 84 |
(A, B, C, D, E, F, G) |
| 85 |
(A, B, C, D, E, F, G, H) |
| 86 |
and 153 others |
| 87 |
note: required by a bound in `ValidityError` |
| 88 |
--> $WORKSPACE/src/error.rs:590:45 |
| 89 |
| |
| 90 |
590 | pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> { |
| 91 |
| ^^^^^^^^^^^^ required by this bound in `ValidityError` |
| 92 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 93 |
= note: consider using `--verbose` to print the full type name to the console |
| 94 |
= note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 95 |
|
| 96 |
error[E0277]: the trait bound `NotZerocopy<AU16>: IntoBytes` is not satisfied |
| 97 |
--> $DIR/try_transmute.rs:21:47 |
| 98 |
| |
| 99 |
21 | let src_not_into_bytes: Result<AU16, _> = try_transmute!(NotZerocopy(AU16(0))); |
| 100 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 101 |
| |
| 102 |
help: the trait `IntoBytes` is not implemented for `NotZerocopy<AU16>` |
| 103 |
--> $DIR/../include.rs:15:5 |
| 104 |
| |
| 105 |
15 | pub struct NotZerocopy<T = ()>(pub T); |
| 106 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 107 |
= note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy<AU16>` |
| 108 |
= help: the following other types implement trait `IntoBytes`: |
| 109 |
() |
| 110 |
AU16 |
| 111 |
AtomicBool |
| 112 |
AtomicI16 |
| 113 |
AtomicI32 |
| 114 |
AtomicI64 |
| 115 |
AtomicI8 |
| 116 |
AtomicIsize |
| 117 |
and 68 others |
| 118 |
note: required by a bound in `try_transmute` |
| 119 |
--> $WORKSPACE/src/util/macro_util.rs:527:10 |
| 120 |
| |
| 121 |
525 | pub fn try_transmute<Src, Dst>(src: Src) -> Result<Dst, ValidityError<Src, Dst>> |
| 122 |
| ------------- required by a bound in this function |
| 123 |
526 | where |
| 124 |
527 | Src: IntoBytes, |
| 125 |
| ^^^^^^^^^ required by this bound in `try_transmute` |
| 126 |
= note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 127 |
|
| 128 |
error: aborting due to 4 previous errors |
| 129 |
|
| 130 |
For more information about this error, try `rustc --explain E0277`. |