diff --git a/Cargo.toml b/Cargo.toml index 297aca4330..75df3e7fec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -59,7 +59,7 @@ zerocopy-panic-in-const-and-vec-try-reserve-1-57-0 = "1.57.0" [package.metadata.ci] # The versions of the stable and nightly compiler toolchains to use in CI. -pinned-stable = "1.90.0" +pinned-stable = "1.91.0" pinned-nightly = "nightly-2025-10-17" [package.metadata.docs.rs] diff --git a/tests/ui-stable/diagnostic-not-implemented-from-bytes.stderr b/tests/ui-stable/diagnostic-not-implemented-from-bytes.stderr index b860020cdb..a8af9c7ca0 100644 --- a/tests/ui-stable/diagnostic-not-implemented-from-bytes.stderr +++ b/tests/ui-stable/diagnostic-not-implemented-from-bytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::FromBytes` is not satisfie --> tests/ui-stable/diagnostic-not-implemented-from-bytes.rs:18:24 | 18 | takes_from_bytes::(); - | ^^^^^^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::FromBytes`: () diff --git a/tests/ui-stable/diagnostic-not-implemented-from-zeros.stderr b/tests/ui-stable/diagnostic-not-implemented-from-zeros.stderr index 1a6a58127a..6da6fa299f 100644 --- a/tests/ui-stable/diagnostic-not-implemented-from-zeros.stderr +++ b/tests/ui-stable/diagnostic-not-implemented-from-zeros.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied --> tests/ui-stable/diagnostic-not-implemented-from-zeros.rs:18:24 | 18 | takes_from_zeros::(); - | ^^^^^^^^^^^ the trait `FromZeros` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `FromZeros` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy` = help: the following other types implement trait `FromZeros`: () diff --git a/tests/ui-stable/diagnostic-not-implemented-immutable.stderr b/tests/ui-stable/diagnostic-not-implemented-immutable.stderr index d96fd4f366..47c4e83982 100644 --- a/tests/ui-stable/diagnostic-not-implemented-immutable.stderr +++ b/tests/ui-stable/diagnostic-not-implemented-immutable.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::Immutable` is not satisfie --> tests/ui-stable/diagnostic-not-implemented-immutable.rs:18:23 | 18 | takes_immutable::(); - | ^^^^^^^^^^^ the trait `zerocopy::Immutable` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::Immutable` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(Immutable)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::Immutable`: &T diff --git a/tests/ui-stable/diagnostic-not-implemented-into-bytes.stderr b/tests/ui-stable/diagnostic-not-implemented-into-bytes.stderr index 19c211b2c0..dc84aacc99 100644 --- a/tests/ui-stable/diagnostic-not-implemented-into-bytes.stderr +++ b/tests/ui-stable/diagnostic-not-implemented-into-bytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::IntoBytes` is not satisfie --> tests/ui-stable/diagnostic-not-implemented-into-bytes.rs:18:24 | 18 | takes_into_bytes::(); - | ^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::IntoBytes`: () diff --git a/tests/ui-stable/diagnostic-not-implemented-issue-1296.stderr b/tests/ui-stable/diagnostic-not-implemented-issue-1296.stderr index 12e10eee78..cb4476e03d 100644 --- a/tests/ui-stable/diagnostic-not-implemented-issue-1296.stderr +++ b/tests/ui-stable/diagnostic-not-implemented-issue-1296.stderr @@ -22,10 +22,15 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::IntoBytes` is not satisfie --> tests/ui-stable/diagnostic-not-implemented-issue-1296.rs:52:19 | 52 | Foo.write_obj(NotZerocopy(())); - | --------- ^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + | --------- ^^^^^^^^^^^^^^^ unsatisfied trait bound | | | required by a bound introduced by this call | +help: the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::IntoBytes`: () diff --git a/tests/ui-stable/diagnostic-not-implemented-known-layout.stderr b/tests/ui-stable/diagnostic-not-implemented-known-layout.stderr index af5564c89f..8ee5a62b00 100644 --- a/tests/ui-stable/diagnostic-not-implemented-known-layout.stderr +++ b/tests/ui-stable/diagnostic-not-implemented-known-layout.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::KnownLayout` is not satisf --> tests/ui-stable/diagnostic-not-implemented-known-layout.rs:18:26 | 18 | takes_known_layout::(); - | ^^^^^^^^^^^ the trait `zerocopy::KnownLayout` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::KnownLayout` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(KnownLayout)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::KnownLayout`: &T diff --git a/tests/ui-stable/diagnostic-not-implemented-try-from-bytes.stderr b/tests/ui-stable/diagnostic-not-implemented-try-from-bytes.stderr index 322f6340e2..8b5b3a8f48 100644 --- a/tests/ui-stable/diagnostic-not-implemented-try-from-bytes.stderr +++ b/tests/ui-stable/diagnostic-not-implemented-try-from-bytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satis --> tests/ui-stable/diagnostic-not-implemented-try-from-bytes.rs:18:28 | 18 | takes_try_from_bytes::(); - | ^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () diff --git a/tests/ui-stable/diagnostic-not-implemented-unaligned.stderr b/tests/ui-stable/diagnostic-not-implemented-unaligned.stderr index d9463715de..ae638f0ea9 100644 --- a/tests/ui-stable/diagnostic-not-implemented-unaligned.stderr +++ b/tests/ui-stable/diagnostic-not-implemented-unaligned.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::Unaligned` is not satisfie --> tests/ui-stable/diagnostic-not-implemented-unaligned.rs:18:23 | 18 | takes_unaligned::(); - | ^^^^^^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::Unaligned` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(Unaligned)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::Unaligned`: () diff --git a/tests/ui-stable/include_value_not_from_bytes.stderr b/tests/ui-stable/include_value_not_from_bytes.stderr index dce1560f39..8f2bcbea6b 100644 --- a/tests/ui-stable/include_value_not_from_bytes.stderr +++ b/tests/ui-stable/include_value_not_from_bytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::FromBytes` is not sat --> tests/ui-stable/include_value_not_from_bytes.rs:19:42 | 19 | const NOT_FROM_BYTES: NotZerocopy = include_value!("../../testdata/include_value/data"); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::FromBytes`: () diff --git a/tests/ui-stable/include_value_wrong_size.stderr b/tests/ui-stable/include_value_wrong_size.stderr index 14caab4b65..9782163f08 100644 --- a/tests/ui-stable/include_value_wrong_size.stderr +++ b/tests/ui-stable/include_value_wrong_size.stderr @@ -1,3 +1,11 @@ +error[E0080]: transmuting from 4-byte type to 8-byte type: `[u8; 4]` -> `u64` + --> tests/ui-stable/include_value_wrong_size.rs:15:25 + | +15 | const WRONG_SIZE: u64 = include_value!("../../testdata/include_value/data"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `WRONG_SIZE` failed here + | + = note: this error originates in the macro `$crate::transmute` which comes from the expansion of the macro `include_value` (in Nightly builds, run with -Z macro-backtrace for more info) + error[E0512]: cannot transmute between types of different sizes, or dependently-sized types --> tests/ui-stable/include_value_wrong_size.rs:15:25 | diff --git a/tests/ui-stable/transmute-dst-not-frombytes.stderr b/tests/ui-stable/transmute-dst-not-frombytes.stderr index d5335ceeda..bd31ed0ca8 100644 --- a/tests/ui-stable/transmute-dst-not-frombytes.stderr +++ b/tests/ui-stable/transmute-dst-not-frombytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::FromBytes` is not satisfie --> tests/ui-stable/transmute-dst-not-frombytes.rs:19:41 | 19 | const DST_NOT_FROM_BYTES: NotZerocopy = transmute!(AU16(0)); - | ^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::FromBytes`: () diff --git a/tests/ui-stable/transmute-mut-dst-not-frombytes.stderr b/tests/ui-stable/transmute-mut-dst-not-frombytes.stderr index 0220afb2c6..cfd6c21474 100644 --- a/tests/ui-stable/transmute-mut-dst-not-frombytes.stderr +++ b/tests/ui-stable/transmute-mut-dst-not-frombytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `Dst: FromBytes` is not satisfied --> tests/ui-stable/transmute-mut-dst-not-frombytes.rs:24:38 | 24 | const DST_NOT_FROM_BYTES: &mut Dst = transmute_mut!(&mut Src); - | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `Dst` + | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `FromBytes` is not implemented for `Dst` + --> tests/ui-stable/transmute-mut-dst-not-frombytes.rs:21:1 + | + 21 | struct Dst; + | ^^^^^^^^^^ = note: Consider adding `#[derive(FromBytes)]` to `Dst` = help: the following other types implement trait `FromBytes`: () diff --git a/tests/ui-stable/transmute-mut-dst-not-intobytes.stderr b/tests/ui-stable/transmute-mut-dst-not-intobytes.stderr index 75ed72948c..90088e267f 100644 --- a/tests/ui-stable/transmute-mut-dst-not-intobytes.stderr +++ b/tests/ui-stable/transmute-mut-dst-not-intobytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `Dst: IntoBytes` is not satisfied --> tests/ui-stable/transmute-mut-dst-not-intobytes.rs:24:36 | 24 | const DST_NOT_AS_BYTES: &mut Dst = transmute_mut!(&mut Src); - | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `Dst` + | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `IntoBytes` is not implemented for `Dst` + --> tests/ui-stable/transmute-mut-dst-not-intobytes.rs:21:1 + | + 21 | struct Dst; + | ^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `Dst` = help: the following other types implement trait `IntoBytes`: () diff --git a/tests/ui-stable/transmute-mut-src-not-frombytes.stderr b/tests/ui-stable/transmute-mut-src-not-frombytes.stderr index f3148fa764..5d7e7fb415 100644 --- a/tests/ui-stable/transmute-mut-src-not-frombytes.stderr +++ b/tests/ui-stable/transmute-mut-src-not-frombytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `Src: FromBytes` is not satisfied --> tests/ui-stable/transmute-mut-src-not-frombytes.rs:24:38 | 24 | const SRC_NOT_FROM_BYTES: &mut Dst = transmute_mut!(&mut Src); - | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `Src` + | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `FromBytes` is not implemented for `Src` + --> tests/ui-stable/transmute-mut-src-not-frombytes.rs:17:1 + | + 17 | struct Src; + | ^^^^^^^^^^ = note: Consider adding `#[derive(FromBytes)]` to `Src` = help: the following other types implement trait `FromBytes`: () diff --git a/tests/ui-stable/transmute-mut-src-not-intobytes.stderr b/tests/ui-stable/transmute-mut-src-not-intobytes.stderr index fa85223011..ac96b53c67 100644 --- a/tests/ui-stable/transmute-mut-src-not-intobytes.stderr +++ b/tests/ui-stable/transmute-mut-src-not-intobytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `Src: IntoBytes` is not satisfied --> tests/ui-stable/transmute-mut-src-not-intobytes.rs:24:36 | 24 | const SRC_NOT_AS_BYTES: &mut Dst = transmute_mut!(&mut Src); - | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `Src` + | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `IntoBytes` is not implemented for `Src` + --> tests/ui-stable/transmute-mut-src-not-intobytes.rs:17:1 + | + 17 | struct Src; + | ^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `Src` = help: the following other types implement trait `IntoBytes`: () diff --git a/tests/ui-stable/transmute-ref-dst-not-frombytes.stderr b/tests/ui-stable/transmute-ref-dst-not-frombytes.stderr index 9b7d71ae81..4e775bf303 100644 --- a/tests/ui-stable/transmute-ref-dst-not-frombytes.stderr +++ b/tests/ui-stable/transmute-ref-dst-not-frombytes.stderr @@ -4,9 +4,14 @@ error[E0277]: the trait bound `Dst: zerocopy::FromBytes` is not satisfied 23 | const DST_NOT_FROM_BYTES: &Dst = transmute_ref!(&AU16(0)); | ^^^^^^^^^^^^^^^^^^^^^^^^ | | - | the trait `zerocopy::FromBytes` is not implemented for `Dst` + | unsatisfied trait bound | required by a bound introduced by this call | +help: the trait `zerocopy::FromBytes` is not implemented for `Dst` + --> tests/ui-stable/transmute-ref-dst-not-frombytes.rs:20:1 + | +20 | struct Dst(AU16); + | ^^^^^^^^^^ = note: Consider adding `#[derive(FromBytes)]` to `Dst` = help: the following other types implement trait `zerocopy::FromBytes`: () diff --git a/tests/ui-stable/transmute-ref-dst-not-nocell.stderr b/tests/ui-stable/transmute-ref-dst-not-nocell.stderr index f53bb38030..3f7edc29cd 100644 --- a/tests/ui-stable/transmute-ref-dst-not-nocell.stderr +++ b/tests/ui-stable/transmute-ref-dst-not-nocell.stderr @@ -4,9 +4,14 @@ error[E0277]: the trait bound `Dst: zerocopy::Immutable` is not satisfied 23 | const DST_NOT_IMMUTABLE: &Dst = transmute_ref!(&AU16(0)); | ^^^^^^^^^^^^^^^^^^^^^^^^ | | - | the trait `zerocopy::Immutable` is not implemented for `Dst` + | unsatisfied trait bound | required by a bound introduced by this call | +help: the trait `zerocopy::Immutable` is not implemented for `Dst` + --> tests/ui-stable/transmute-ref-dst-not-nocell.rs:20:1 + | +20 | struct Dst(AU16); + | ^^^^^^^^^^ = note: Consider adding `#[derive(Immutable)]` to `Dst` = help: the following other types implement trait `zerocopy::Immutable`: &T diff --git a/tests/ui-stable/transmute-ref-src-not-intobytes.stderr b/tests/ui-stable/transmute-ref-src-not-intobytes.stderr index 198866d8f8..11556f74a2 100644 --- a/tests/ui-stable/transmute-ref-src-not-intobytes.stderr +++ b/tests/ui-stable/transmute-ref-src-not-intobytes.stderr @@ -4,9 +4,14 @@ error[E0277]: the trait bound `Src: zerocopy::IntoBytes` is not satisfied 23 | const SRC_NOT_AS_BYTES: &AU16 = transmute_ref!(&Src(AU16(0))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | - | the trait `zerocopy::IntoBytes` is not implemented for `Src` + | unsatisfied trait bound | required by a bound introduced by this call | +help: the trait `zerocopy::IntoBytes` is not implemented for `Src` + --> tests/ui-stable/transmute-ref-src-not-intobytes.rs:20:1 + | +20 | struct Src(AU16); + | ^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `Src` = help: the following other types implement trait `zerocopy::IntoBytes`: () @@ -29,8 +34,13 @@ error[E0277]: the trait bound `Src: zerocopy::IntoBytes` is not satisfied --> tests/ui-stable/transmute-ref-src-not-intobytes.rs:23:33 | 23 | const SRC_NOT_AS_BYTES: &AU16 = transmute_ref!(&Src(AU16(0))); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `Src` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::IntoBytes` is not implemented for `Src` + --> tests/ui-stable/transmute-ref-src-not-intobytes.rs:20:1 | +20 | struct Src(AU16); + | ^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `Src` = help: the following other types implement trait `zerocopy::IntoBytes`: () diff --git a/tests/ui-stable/transmute-ref-src-not-nocell.stderr b/tests/ui-stable/transmute-ref-src-not-nocell.stderr index 209f4b25a6..46bf46ae07 100644 --- a/tests/ui-stable/transmute-ref-src-not-nocell.stderr +++ b/tests/ui-stable/transmute-ref-src-not-nocell.stderr @@ -4,9 +4,14 @@ error[E0277]: the trait bound `Src: zerocopy::Immutable` is not satisfied 23 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | - | the trait `zerocopy::Immutable` is not implemented for `Src` + | unsatisfied trait bound | required by a bound introduced by this call | +help: the trait `zerocopy::Immutable` is not implemented for `Src` + --> tests/ui-stable/transmute-ref-src-not-nocell.rs:20:1 + | +20 | struct Src(AU16); + | ^^^^^^^^^^ = note: Consider adding `#[derive(Immutable)]` to `Src` = help: the following other types implement trait `zerocopy::Immutable`: &T @@ -29,8 +34,13 @@ error[E0277]: the trait bound `Src: zerocopy::Immutable` is not satisfied --> tests/ui-stable/transmute-ref-src-not-nocell.rs:23:34 | 23 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0))); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::Immutable` is not implemented for `Src` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::Immutable` is not implemented for `Src` + --> tests/ui-stable/transmute-ref-src-not-nocell.rs:20:1 | +20 | struct Src(AU16); + | ^^^^^^^^^^ = note: Consider adding `#[derive(Immutable)]` to `Src` = help: the following other types implement trait `zerocopy::Immutable`: &T diff --git a/tests/ui-stable/transmute-size-decrease.stderr b/tests/ui-stable/transmute-size-decrease.stderr index e749222b8f..2852cb339e 100644 --- a/tests/ui-stable/transmute-size-decrease.stderr +++ b/tests/ui-stable/transmute-size-decrease.stderr @@ -1,3 +1,11 @@ +error[E0080]: transmuting from 2-byte type to 1-byte type: `AU16` -> `u8` + --> tests/ui-stable/transmute-size-decrease.rs:20:27 + | +20 | const DECREASE_SIZE: u8 = transmute!(AU16(0)); + | ^^^^^^^^^^^^^^^^^^^ evaluation of `DECREASE_SIZE` failed here + | + = note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info) + error[E0512]: cannot transmute between types of different sizes, or dependently-sized types --> tests/ui-stable/transmute-size-decrease.rs:20:27 | diff --git a/tests/ui-stable/transmute-size-increase-allow-shrink.stderr b/tests/ui-stable/transmute-size-increase-allow-shrink.stderr index 9ad2760b91..9050a73bfa 100644 --- a/tests/ui-stable/transmute-size-increase-allow-shrink.stderr +++ b/tests/ui-stable/transmute-size-increase-allow-shrink.stderr @@ -1,3 +1,11 @@ +error[E0080]: transmuting from 1-byte type to 2-byte type: `u8` -> `Transmute` + --> tests/ui-stable/transmute-size-increase-allow-shrink.rs:20:29 + | +20 | const INCREASE_SIZE: AU16 = transmute!(#![allow(shrink)] 0u8); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `INCREASE_SIZE` failed here + | + = note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info) + error[E0512]: cannot transmute between types of different sizes, or dependently-sized types --> tests/ui-stable/transmute-size-increase-allow-shrink.rs:20:29 | diff --git a/tests/ui-stable/transmute-size-increase.stderr b/tests/ui-stable/transmute-size-increase.stderr index 08d4c75c60..40be466fce 100644 --- a/tests/ui-stable/transmute-size-increase.stderr +++ b/tests/ui-stable/transmute-size-increase.stderr @@ -1,3 +1,11 @@ +error[E0080]: transmuting from 1-byte type to 2-byte type: `u8` -> `AU16` + --> tests/ui-stable/transmute-size-increase.rs:20:29 + | +20 | const INCREASE_SIZE: AU16 = transmute!(0u8); + | ^^^^^^^^^^^^^^^ evaluation of `INCREASE_SIZE` failed here + | + = note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info) + error[E0512]: cannot transmute between types of different sizes, or dependently-sized types --> tests/ui-stable/transmute-size-increase.rs:20:29 | diff --git a/tests/ui-stable/transmute-src-not-intobytes.stderr b/tests/ui-stable/transmute-src-not-intobytes.stderr index 76af81eece..a3cfa3942d 100644 --- a/tests/ui-stable/transmute-src-not-intobytes.stderr +++ b/tests/ui-stable/transmute-src-not-intobytes.stderr @@ -4,9 +4,14 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::IntoBytes` is not sa 19 | const SRC_NOT_AS_BYTES: AU16 = transmute!(NotZerocopy(AU16(0))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | - | the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + | unsatisfied trait bound | required by a bound introduced by this call | +help: the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::IntoBytes`: () diff --git a/tests/ui-stable/try_transmute-dst-not-tryfrombytes.stderr b/tests/ui-stable/try_transmute-dst-not-tryfrombytes.stderr index b2b0394019..3d96eaf36a 100644 --- a/tests/ui-stable/try_transmute-dst-not-tryfrombytes.stderr +++ b/tests/ui-stable/try_transmute-dst-not-tryfrombytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satis --> tests/ui-stable/try_transmute-dst-not-tryfrombytes.rs:17:33 | 17 | let dst_not_try_from_bytes: Result = try_transmute!(AU16(0)); - | ^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + 48 | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () @@ -25,8 +30,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satis --> tests/ui-stable/try_transmute-dst-not-tryfrombytes.rs:17:58 | 17 | let dst_not_try_from_bytes: Result = try_transmute!(AU16(0)); - | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs | + 48 | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () @@ -52,8 +62,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satis --> tests/ui-stable/try_transmute-dst-not-tryfrombytes.rs:17:58 | 17 | let dst_not_try_from_bytes: Result = try_transmute!(AU16(0)); - | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs | + 48 | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () diff --git a/tests/ui-stable/try_transmute-src-not-intobytes.stderr b/tests/ui-stable/try_transmute-src-not-intobytes.stderr index 0faf5f0981..5d6a48a1f3 100644 --- a/tests/ui-stable/try_transmute-src-not-intobytes.stderr +++ b/tests/ui-stable/try_transmute-src-not-intobytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::IntoBytes` is not sa --> tests/ui-stable/try_transmute-src-not-intobytes.rs:18:47 | 18 | let src_not_into_bytes: Result = try_transmute!(NotZerocopy(AU16(0))); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + 48 | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::IntoBytes`: () diff --git a/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.stderr b/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.stderr index 4fb22b2ba4..139dcaa5b1 100644 --- a/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.stderr +++ b/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satis --> tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.rs:20:33 | 20 | let dst_not_try_from_bytes: Result<&mut NotZerocopy, _> = try_transmute_mut!(src); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + 48 | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () @@ -25,8 +30,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satis --> tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.rs:20:63 | 20 | let dst_not_try_from_bytes: Result<&mut NotZerocopy, _> = try_transmute_mut!(src); - | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs | + 48 | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () @@ -52,8 +62,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::IntoBytes` is not satisfie --> tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.rs:20:63 | 20 | let dst_not_try_from_bytes: Result<&mut NotZerocopy, _> = try_transmute_mut!(src); - | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + 48 | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::IntoBytes`: () @@ -79,8 +94,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satis --> tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.rs:20:63 | 20 | let dst_not_try_from_bytes: Result<&mut NotZerocopy, _> = try_transmute_mut!(src); - | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs | + 48 | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () diff --git a/tests/ui-stable/try_transmute_mut-size-increase.stderr b/tests/ui-stable/try_transmute_mut-size-increase.stderr index 67309877d1..8be07db424 100644 --- a/tests/ui-stable/try_transmute_mut-size-increase.stderr +++ b/tests/ui-stable/try_transmute_mut-size-increase.stderr @@ -4,7 +4,7 @@ warning: unused import: `util::AU16` 13 | use util::AU16; | ^^^^^^^^^^ | - = note: `#[warn(unused_imports)]` on by default + = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default error[E0512]: cannot transmute between types of different sizes, or dependently-sized types --> tests/ui-stable/try_transmute_mut-size-increase.rs:20:51 diff --git a/tests/ui-stable/try_transmute_mut-src-not-frombytes.stderr b/tests/ui-stable/try_transmute_mut-src-not-frombytes.stderr index a6ccc420df..e99b2f0990 100644 --- a/tests/ui-stable/try_transmute_mut-src-not-frombytes.stderr +++ b/tests/ui-stable/try_transmute_mut-src-not-frombytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `Src: FromBytes` is not satisfied --> tests/ui-stable/try_transmute_mut-src-not-frombytes.rs:23:40 | 23 | let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src); - | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `Src` + | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `FromBytes` is not implemented for `Src` + --> tests/ui-stable/try_transmute_mut-src-not-frombytes.rs:15:1 + | + 15 | struct Src; + | ^^^^^^^^^^ = note: Consider adding `#[derive(FromBytes)]` to `Src` = help: the following other types implement trait `FromBytes`: () @@ -29,8 +34,13 @@ error[E0277]: the trait bound `Dst: FromBytes` is not satisfied --> tests/ui-stable/try_transmute_mut-src-not-frombytes.rs:23:40 | 23 | let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src); - | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `Dst` + | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `FromBytes` is not implemented for `Dst` + --> tests/ui-stable/try_transmute_mut-src-not-frombytes.rs:19:1 | + 19 | struct Dst; + | ^^^^^^^^^^ = note: Consider adding `#[derive(FromBytes)]` to `Dst` = help: the following other types implement trait `FromBytes`: () @@ -56,8 +66,13 @@ error[E0277]: the trait bound `Dst: IntoBytes` is not satisfied --> tests/ui-stable/try_transmute_mut-src-not-frombytes.rs:23:40 | 23 | let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src); - | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `Dst` + | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `IntoBytes` is not implemented for `Dst` + --> tests/ui-stable/try_transmute_mut-src-not-frombytes.rs:19:1 | + 19 | struct Dst; + | ^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `Dst` = help: the following other types implement trait `IntoBytes`: () diff --git a/tests/ui-stable/try_transmute_mut-src-not-intobytes.stderr b/tests/ui-stable/try_transmute_mut-src-not-intobytes.stderr index e482a917eb..cd2c51f853 100644 --- a/tests/ui-stable/try_transmute_mut-src-not-intobytes.stderr +++ b/tests/ui-stable/try_transmute_mut-src-not-intobytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `Src: IntoBytes` is not satisfied --> tests/ui-stable/try_transmute_mut-src-not-intobytes.rs:23:40 | 23 | let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src); - | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `Src` + | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `IntoBytes` is not implemented for `Src` + --> tests/ui-stable/try_transmute_mut-src-not-intobytes.rs:15:1 + | + 15 | struct Src; + | ^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `Src` = help: the following other types implement trait `IntoBytes`: () @@ -29,8 +34,13 @@ error[E0277]: the trait bound `Dst: FromBytes` is not satisfied --> tests/ui-stable/try_transmute_mut-src-not-intobytes.rs:23:40 | 23 | let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src); - | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `Dst` + | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `FromBytes` is not implemented for `Dst` + --> tests/ui-stable/try_transmute_mut-src-not-intobytes.rs:19:1 | + 19 | struct Dst; + | ^^^^^^^^^^ = note: Consider adding `#[derive(FromBytes)]` to `Dst` = help: the following other types implement trait `FromBytes`: () @@ -56,8 +66,13 @@ error[E0277]: the trait bound `Dst: IntoBytes` is not satisfied --> tests/ui-stable/try_transmute_mut-src-not-intobytes.rs:23:40 | 23 | let src_not_from_bytes: &mut Dst = transmute_mut!(&mut Src); - | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `Dst` + | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `IntoBytes` is not implemented for `Dst` + --> tests/ui-stable/try_transmute_mut-src-not-intobytes.rs:19:1 | + 19 | struct Dst; + | ^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `Dst` = help: the following other types implement trait `IntoBytes`: () diff --git a/tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr b/tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr index afc19fce5b..0a004a6081 100644 --- a/tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +++ b/tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satis --> tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.rs:19:33 | 19 | let dst_not_try_from_bytes: Result<&NotZerocopy, _> = try_transmute_ref!(&AU16(0)); - | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + 48 | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () @@ -25,8 +30,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satis --> tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.rs:19:59 | 19 | let dst_not_try_from_bytes: Result<&NotZerocopy, _> = try_transmute_ref!(&AU16(0)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs | + 48 | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () @@ -52,8 +62,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::Immutable` is not satisfie --> tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.rs:19:59 | 19 | let dst_not_try_from_bytes: Result<&NotZerocopy, _> = try_transmute_ref!(&AU16(0)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::Immutable` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::Immutable` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + 48 | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(Immutable)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::Immutable`: &T @@ -79,8 +94,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satis --> tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.rs:19:59 | 19 | let dst_not_try_from_bytes: Result<&NotZerocopy, _> = try_transmute_ref!(&AU16(0)); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs | + 48 | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () diff --git a/tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.stderr b/tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.stderr index 3e7d8f927a..fcd3836c40 100644 --- a/tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.stderr +++ b/tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::IntoBytes` is not sa --> tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.rs:19:48 | 19 | let src_not_into_bytes: Result<&AU16, _> = try_transmute_ref!(&NotZerocopy(AU16(0))); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs + | + 48 | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::IntoBytes`: () @@ -29,8 +34,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::Immutable` is not sa --> tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.rs:19:48 | 19 | let src_not_into_bytes: Result<&AU16, _> = try_transmute_ref!(&NotZerocopy(AU16(0))); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::Immutable` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::Immutable` is not implemented for `NotZerocopy` + --> tests/ui-stable/../../zerocopy-derive/tests/include.rs | + 48 | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(Immutable)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::Immutable`: &T diff --git a/zerocopy-derive/tests/ui-stable/derive_transparent.stderr b/zerocopy-derive/tests/ui-stable/derive_transparent.stderr index 762c65fde7..c82b354aeb 100644 --- a/zerocopy-derive/tests/ui-stable/derive_transparent.stderr +++ b/zerocopy-derive/tests/ui-stable/derive_transparent.stderr @@ -2,8 +2,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satis --> tests/ui-stable/derive_transparent.rs:34:23 | 34 | util_assert_impl_all!(TransparentStruct: TryFromBytes); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () @@ -31,8 +36,13 @@ error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied --> tests/ui-stable/derive_transparent.rs:35:23 | 35 | util_assert_impl_all!(TransparentStruct: FromZeros); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromZeros` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `FromZeros` is not implemented for `NotZerocopy` + --> tests/ui-stable/../include.rs | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy` = help: the following other types implement trait `FromZeros`: () @@ -60,8 +70,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::FromBytes` is not satisfie --> tests/ui-stable/derive_transparent.rs:36:23 | 36 | util_assert_impl_all!(TransparentStruct: FromBytes); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../include.rs | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::FromBytes`: () @@ -89,8 +104,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::IntoBytes` is not satisfie --> tests/ui-stable/derive_transparent.rs:37:23 | 37 | util_assert_impl_all!(TransparentStruct: IntoBytes); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::IntoBytes`: () @@ -118,8 +138,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::Unaligned` is not satisfie --> tests/ui-stable/derive_transparent.rs:38:23 | 38 | util_assert_impl_all!(TransparentStruct: Unaligned); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::Unaligned` is not implemented for `NotZerocopy` + --> tests/ui-stable/../include.rs | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(Unaligned)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::Unaligned`: () diff --git a/zerocopy-derive/tests/ui-stable/enum.stderr b/zerocopy-derive/tests/ui-stable/enum.stderr index 5e0e148237..b1cd667675 100644 --- a/zerocopy-derive/tests/ui-stable/enum.stderr +++ b/zerocopy-derive/tests/ui-stable/enum.stderr @@ -286,6 +286,7 @@ error[E0552]: unrecognized representation hint | ^^^ | = help: valid reprs are `Rust` (default), `C`, `align`, `packed`, `transparent`, `simd`, `i8`, `u8`, `i16`, `u16`, `i32`, `u32`, `i64`, `u64`, `i128`, `u128`, `isize`, `usize` + = note: for more information, visit error[E0566]: conflicting representation hints --> tests/ui-stable/enum.rs:37:8 @@ -295,7 +296,7 @@ error[E0566]: conflicting representation hints | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #68585 - = note: `#[deny(conflicting_repr_hints)]` on by default + = note: `#[deny(conflicting_repr_hints)]` (part of `#[deny(future_incompatible)]`) on by default error[E0277]: the trait bound `UnsafeCell<()>: Immutable` is not satisfied --> tests/ui-stable/enum.rs:51:10 @@ -341,8 +342,13 @@ error[E0277]: the trait bound `NotTryFromBytes: TryFromBytes` is not satisfied --> tests/ui-stable/enum.rs:82:10 | 82 | #[derive(TryFromBytes)] - | ^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotTryFromBytes` + | ^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `TryFromBytes` is not implemented for `NotTryFromBytes` + --> tests/ui-stable/enum.rs:80:1 + | +80 | struct NotTryFromBytes; + | ^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotTryFromBytes` = help: the following other types implement trait `TryFromBytes`: () @@ -361,8 +367,13 @@ error[E0277]: the trait bound `NotFromZeros: TryFromBytes` is not satisfied --> tests/ui-stable/enum.rs:127:10 | 127 | #[derive(FromZeros)] - | ^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotFromZeros` + | ^^^^^^^^^ unsatisfied trait bound + | +help: the trait `TryFromBytes` is not implemented for `NotFromZeros` + --> tests/ui-stable/enum.rs:125:1 | +125 | struct NotFromZeros; + | ^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotFromZeros` = help: the following other types implement trait `TryFromBytes`: () @@ -381,8 +392,13 @@ error[E0277]: the trait bound `NotFromZeros: FromZeros` is not satisfied --> tests/ui-stable/enum.rs:127:10 | 127 | #[derive(FromZeros)] - | ^^^^^^^^^ the trait `FromZeros` is not implemented for `NotFromZeros` + | ^^^^^^^^^ unsatisfied trait bound + | +help: the trait `FromZeros` is not implemented for `NotFromZeros` + --> tests/ui-stable/enum.rs:125:1 | +125 | struct NotFromZeros; + | ^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(FromZeros)]` to `NotFromZeros` = help: the following other types implement trait `FromZeros`: () diff --git a/zerocopy-derive/tests/ui-stable/late_compile_pass.stderr b/zerocopy-derive/tests/ui-stable/late_compile_pass.stderr index cc8f6dd328..edc57e8923 100644 --- a/zerocopy-derive/tests/ui-stable/late_compile_pass.stderr +++ b/zerocopy-derive/tests/ui-stable/late_compile_pass.stderr @@ -4,14 +4,19 @@ warning: unused import: `zerocopy::KnownLayout` 15 | use zerocopy::KnownLayout; | ^^^^^^^^^^^^^^^^^^^^^ | - = note: `#[warn(unused_imports)]` on by default + = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied --> tests/ui-stable/late_compile_pass.rs:29:10 | 29 | #[derive(TryFromBytes)] - | ^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () @@ -30,8 +35,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satis --> tests/ui-stable/late_compile_pass.rs:38:10 | 38 | #[derive(FromZeros)] - | ^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../include.rs | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () @@ -50,8 +60,13 @@ error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied --> tests/ui-stable/late_compile_pass.rs:38:10 | 38 | #[derive(FromZeros)] - | ^^^^^^^^^ the trait `FromZeros` is not implemented for `NotZerocopy` + | ^^^^^^^^^ unsatisfied trait bound + | +help: the trait `FromZeros` is not implemented for `NotZerocopy` + --> tests/ui-stable/../include.rs | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy` = help: the following other types implement trait `FromZeros`: () @@ -70,8 +85,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satis --> tests/ui-stable/late_compile_pass.rs:47:10 | 47 | #[derive(FromBytes)] - | ^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () @@ -90,8 +110,13 @@ error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied --> tests/ui-stable/late_compile_pass.rs:47:10 | 47 | #[derive(FromBytes)] - | ^^^^^^^^^ the trait `FromZeros` is not implemented for `NotZerocopy` + | ^^^^^^^^^ unsatisfied trait bound + | +help: the trait `FromZeros` is not implemented for `NotZerocopy` + --> tests/ui-stable/../include.rs | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy` = help: the following other types implement trait `FromZeros`: () @@ -110,8 +135,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::FromBytes` is not satisfie --> tests/ui-stable/late_compile_pass.rs:47:10 | 47 | #[derive(FromBytes)] - | ^^^^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../include.rs | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::FromBytes`: () @@ -130,8 +160,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::IntoBytes` is not satisfie --> tests/ui-stable/late_compile_pass.rs:56:10 | 56 | #[derive(IntoBytes)] - | ^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../include.rs + | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::IntoBytes`: () @@ -150,8 +185,13 @@ error[E0277]: the trait bound `AU16: zerocopy::Unaligned` is not satisfied --> tests/ui-stable/late_compile_pass.rs:66:10 | 66 | #[derive(Unaligned)] - | ^^^^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `AU16` + | ^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::Unaligned` is not implemented for `AU16` + --> tests/ui-stable/../include.rs | + | pub struct AU16(pub u16); + | ^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(Unaligned)]` to `AU16` = help: the following other types implement trait `zerocopy::Unaligned`: () @@ -170,8 +210,13 @@ error[E0277]: the trait bound `AU16: zerocopy::Unaligned` is not satisfied --> tests/ui-stable/late_compile_pass.rs:74:10 | 74 | #[derive(Unaligned)] - | ^^^^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `AU16` + | ^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::Unaligned` is not implemented for `AU16` + --> tests/ui-stable/../include.rs | + | pub struct AU16(pub u16); + | ^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(Unaligned)]` to `AU16` = help: the following other types implement trait `zerocopy::Unaligned`: () @@ -190,8 +235,13 @@ error[E0277]: the trait bound `AU16: zerocopy::Unaligned` is not satisfied --> tests/ui-stable/late_compile_pass.rs:81:10 | 81 | #[derive(Unaligned)] - | ^^^^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `AU16` + | ^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::Unaligned` is not implemented for `AU16` + --> tests/ui-stable/../include.rs + | + | pub struct AU16(pub u16); + | ^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(Unaligned)]` to `AU16` = help: the following other types implement trait `zerocopy::Unaligned`: () @@ -210,8 +260,13 @@ error[E0277]: the trait bound `NotZerocopy: zerocopy::FromBytes` is not satisfie --> tests/ui-stable/late_compile_pass.rs:47:10 | 47 | #[derive(FromBytes)] - | ^^^^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy` + | ^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy` + --> tests/ui-stable/../include.rs | + | pub struct NotZerocopy(pub T); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::FromBytes`: () diff --git a/zerocopy-derive/tests/ui-stable/struct.stderr b/zerocopy-derive/tests/ui-stable/struct.stderr index b3c0abf44a..e2354dd4c3 100644 --- a/zerocopy-derive/tests/ui-stable/struct.stderr +++ b/zerocopy-derive/tests/ui-stable/struct.stderr @@ -120,8 +120,13 @@ error[E0277]: the trait bound `NotKnownLayoutDst: zerocopy::KnownLayout` is not --> tests/ui-stable/struct.rs:41:10 | 41 | #[derive(KnownLayout)] - | ^^^^^^^^^^^ the trait `zerocopy::KnownLayout` is not implemented for `NotKnownLayoutDst` + | ^^^^^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::KnownLayout` is not implemented for `NotKnownLayoutDst` + --> tests/ui-stable/struct.rs:27:1 + | +27 | struct NotKnownLayoutDst([u8]); + | ^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(KnownLayout)]` to `NotKnownLayoutDst` = help: the following other types implement trait `zerocopy::KnownLayout`: &T @@ -140,8 +145,13 @@ error[E0277]: the trait bound `NotKnownLayout: zerocopy::KnownLayout` is not sat --> tests/ui-stable/struct.rs:47:10 | 47 | #[derive(KnownLayout)] - | ^^^^^^^^^^^ the trait `zerocopy::KnownLayout` is not implemented for `NotKnownLayout` + | ^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::KnownLayout` is not implemented for `NotKnownLayout` + --> tests/ui-stable/struct.rs:25:1 | +25 | struct NotKnownLayout; + | ^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(KnownLayout)]` to `NotKnownLayout` = help: the following other types implement trait `zerocopy::KnownLayout`: &T @@ -249,8 +259,13 @@ error[E0277]: the trait bound `AU16: zerocopy::Unaligned` is not satisfied --> tests/ui-stable/struct.rs:100:10 | 100 | #[derive(IntoBytes)] - | ^^^^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `AU16` + | ^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::Unaligned` is not implemented for `AU16` + --> tests/ui-stable/../include.rs | + 63 | pub struct AU16(pub u16); + | ^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(Unaligned)]` to `AU16` = help: the following other types implement trait `zerocopy::Unaligned`: () @@ -381,8 +396,13 @@ error[E0277]: the trait bound `SplitAtNotKnownLayout: zerocopy::KnownLayout` is --> tests/ui-stable/struct.rs:248:10 | 248 | #[derive(SplitAt)] - | ^^^^^^^ the trait `zerocopy::KnownLayout` is not implemented for `SplitAtNotKnownLayout` + | ^^^^^^^ unsatisfied trait bound | +help: the trait `zerocopy::KnownLayout` is not implemented for `SplitAtNotKnownLayout` + --> tests/ui-stable/struct.rs:250:1 + | +250 | struct SplitAtNotKnownLayout([u8]); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(KnownLayout)]` to `SplitAtNotKnownLayout` = help: the following other types implement trait `zerocopy::KnownLayout`: &T @@ -419,8 +439,13 @@ error[E0277]: the trait bound `AU16: zerocopy::Unaligned` is not satisfied --> tests/ui-stable/struct.rs:195:28 | 195 | is_into_bytes_11::>(); - | ^^^^^^^^^^^^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `AU16` + | ^^^^^^^^^^^^^^^^^ unsatisfied trait bound + | +help: the trait `zerocopy::Unaligned` is not implemented for `AU16` + --> tests/ui-stable/../include.rs | + 63 | pub struct AU16(pub u16); + | ^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(Unaligned)]` to `AU16` = help: the following other types implement trait `zerocopy::Unaligned`: ()