]> git.lizzy.rs Git - rust.git/blob - src/test/ui/derives/deriving-with-repr-packed.stderr
Rollup merge of #66498 - bjorn3:less_feature_flags, r=Dylan-DPC
[rust.git] / src / test / ui / derives / deriving-with-repr-packed.stderr
1 error: `#[derive]` can't be used on a `#[repr(packed)]` struct with type or const parameters (error E0133)
2   --> $DIR/deriving-with-repr-packed.rs:8:16
3    |
4 LL | #[derive(Copy, Clone, PartialEq, Eq)]
5    |                ^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/deriving-with-repr-packed.rs:1:9
9    |
10 LL | #![deny(safe_packed_borrows)]
11    |         ^^^^^^^^^^^^^^^^^^^
12    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
13    = note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
14    = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
15
16 error: `#[derive]` can't be used on a `#[repr(packed)]` struct with type or const parameters (error E0133)
17   --> $DIR/deriving-with-repr-packed.rs:8:23
18    |
19 LL | #[derive(Copy, Clone, PartialEq, Eq)]
20    |                       ^^^^^^^^^
21    |
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 #46043 <https://github.com/rust-lang/rust/issues/46043>
24    = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
25
26 error: `#[derive]` can't be used on a `#[repr(packed)]` struct that does not derive Copy (error E0133)
27   --> $DIR/deriving-with-repr-packed.rs:16:10
28    |
29 LL | #[derive(PartialEq, Eq)]
30    |          ^^^^^^^^^
31    |
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 #46043 <https://github.com/rust-lang/rust/issues/46043>
34    = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
35
36 error: `#[derive]` can't be used on a `#[repr(packed)]` struct that does not derive Copy (error E0133)
37   --> $DIR/deriving-with-repr-packed.rs:25:10
38    |
39 LL | #[derive(PartialEq)]
40    |          ^^^^^^^^^
41    |
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 #46043 <https://github.com/rust-lang/rust/issues/46043>
44    = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
45
46 error: aborting due to 4 previous errors
47