1 error: `Clone` can't be derived on this `#[repr(packed)]` struct with type or const parameters
2 --> $DIR/deriving-with-repr-packed.rs:11:16
4 LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
7 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
9 note: the lint level is defined here
10 --> $DIR/deriving-with-repr-packed.rs:1:9
12 LL | #![deny(unaligned_references)]
13 | ^^^^^^^^^^^^^^^^^^^^
14 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
16 error: `PartialEq` can't be derived on this `#[repr(packed)]` struct with type or const parameters
17 --> $DIR/deriving-with-repr-packed.rs:11:32
19 LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
22 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
23 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
24 = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
26 error: `Hash` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy`
27 --> $DIR/deriving-with-repr-packed.rs:19:19
29 LL | #[derive(Default, Hash)]
32 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
33 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
34 = note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
36 error: `Debug` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy`
37 --> $DIR/deriving-with-repr-packed.rs:39:10
39 LL | #[derive(Debug, Default)]
42 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
43 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
44 = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
46 error: aborting due to 4 previous errors
48 Future incompatibility report: Future breakage diagnostic:
49 error: `Clone` can't be derived on this `#[repr(packed)]` struct with type or const parameters
50 --> $DIR/deriving-with-repr-packed.rs:11:16
52 LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
55 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
56 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
57 note: the lint level is defined here
58 --> $DIR/deriving-with-repr-packed.rs:1:9
60 LL | #![deny(unaligned_references)]
61 | ^^^^^^^^^^^^^^^^^^^^
62 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
64 Future breakage diagnostic:
65 error: `PartialEq` can't be derived on this `#[repr(packed)]` struct with type or const parameters
66 --> $DIR/deriving-with-repr-packed.rs:11:32
68 LL | #[derive(Copy, Clone, Default, PartialEq, Eq)]
71 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
72 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
73 note: the lint level is defined here
74 --> $DIR/deriving-with-repr-packed.rs:1:9
76 LL | #![deny(unaligned_references)]
77 | ^^^^^^^^^^^^^^^^^^^^
78 = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
80 Future breakage diagnostic:
81 error: `Hash` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy`
82 --> $DIR/deriving-with-repr-packed.rs:19:19
84 LL | #[derive(Default, Hash)]
87 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
88 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
89 note: the lint level is defined here
90 --> $DIR/deriving-with-repr-packed.rs:1:9
92 LL | #![deny(unaligned_references)]
93 | ^^^^^^^^^^^^^^^^^^^^
94 = note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
96 Future breakage diagnostic:
97 error: `Debug` can't be derived on this `#[repr(packed)]` struct that does not derive `Copy`
98 --> $DIR/deriving-with-repr-packed.rs:39:10
100 LL | #[derive(Debug, Default)]
103 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
104 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
105 note: the lint level is defined here
106 --> $DIR/deriving-with-repr-packed.rs:1:9
108 LL | #![deny(unaligned_references)]
109 | ^^^^^^^^^^^^^^^^^^^^
110 = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)