]> git.lizzy.rs Git - rust.git/blob - src/test/ui/derives/deriving-with-repr-packed.stderr
Ignore i586-unknown-linux-gnu and i586-unknown-musl in tests
[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: lint level 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
15 error: `#[derive]` can't be used on a `#[repr(packed)]` struct with type or const parameters (error E0133)
16   --> $DIR/deriving-with-repr-packed.rs:8:23
17    |
18 LL | #[derive(Copy, Clone, PartialEq, Eq)]
19    |                       ^^^^^^^^^
20    |
21    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22    = note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
23
24 error: `#[derive]` can't be used on a `#[repr(packed)]` struct that does not derive Copy (error E0133)
25   --> $DIR/deriving-with-repr-packed.rs:16:10
26    |
27 LL | #[derive(PartialEq, Eq)]
28    |          ^^^^^^^^^
29    |
30    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
31    = note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
32
33 error: `#[derive]` can't be used on a `#[repr(packed)]` struct that does not derive Copy (error E0133)
34   --> $DIR/deriving-with-repr-packed.rs:25:10
35    |
36 LL | #[derive(PartialEq)]
37    |          ^^^^^^^^^
38    |
39    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
40    = note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
41
42 error: aborting due to 4 previous errors
43