| 1 |
warning: unused `#[macro_use]` import |
| 2 |
--> $DIR/msrv_specific.rs:12:1 |
| 3 |
| |
| 4 |
12 | #[macro_use] |
| 5 |
| ^^^^^^^^^^^^ |
| 6 |
| |
| 7 |
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default |
| 8 |
|
| 9 |
error[E0277]: the trait bound `AU16: zerocopy_renamed::Unaligned` is not satisfied |
| 10 |
--> $DIR/msrv_specific.rs:37:27 |
| 11 |
| |
| 12 |
37 | is_into_bytes_1::<IntoBytes1<AU16>>(); |
| 13 |
| ^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 14 |
| |
| 15 |
help: the trait `zerocopy_renamed::Unaligned` is not implemented for `AU16` |
| 16 |
--> $DIR/../include.rs:64:5 |
| 17 |
| |
| 18 |
64 | pub struct AU16(pub u16); |
| 19 |
| ^^^^^^^^^^^^^^^ |
| 20 |
= note: Consider adding `#[derive(Unaligned)]` to `AU16` |
| 21 |
= help: the following other types implement trait `zerocopy_renamed::Unaligned`: |
| 22 |
() |
| 23 |
AtomicBool |
| 24 |
AtomicI8 |
| 25 |
AtomicU8 |
| 26 |
Cell<T> |
| 27 |
F32<O> |
| 28 |
F64<O> |
| 29 |
I128<O> |
| 30 |
and 26 others |
| 31 |
note: required for `IntoBytes1<AU16>` to implement `zerocopy_renamed::IntoBytes` |
| 32 |
--> $DIR/msrv_specific.rs:25:10 |
| 33 |
| |
| 34 |
25 | #[derive(IntoBytes)] |
| 35 |
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro |
| 36 |
note: required by a bound in `is_into_bytes_1` |
| 37 |
--> $DIR/msrv_specific.rs:35:23 |
| 38 |
| |
| 39 |
35 | fn is_into_bytes_1<T: IntoBytes>() { |
| 40 |
| ^^^^^^^^^ required by this bound in `is_into_bytes_1` |
| 41 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 42 |
|
| 43 |
error: aborting due to 1 previous error; 1 warning emitted |
| 44 |
|
| 45 |
For more information about this error, try `rustc --explain E0277`. |