Debian Codegraph @

.cargo/vendor/bitflags-1.3.2/tests/compile-fail/impls/eq.stderr.beta

raw
1 error[E0119]: conflicting implementations of trait `std::cmp::PartialEq` for type `Flags`
2 --> $DIR/eq.rs:3:1
3 |
4 3 | / bitflags! {
5 4 | | #[derive(PartialEq, Eq)]
6 | | --------- first implementation here
7 5 | | struct Flags: u32 {
8 6 | | const A = 0b00000001;
9 7 | | }
10 8 | | }
11 | |_^ conflicting implementation for `Flags`
12 |
13 = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15 error[E0119]: conflicting implementations of trait `std::cmp::Eq` for type `Flags`
16 --> $DIR/eq.rs:3:1
17 |
18 3 | / bitflags! {
19 4 | | #[derive(PartialEq, Eq)]
20 | | -- first implementation here
21 5 | | struct Flags: u32 {
22 6 | | const A = 0b00000001;
23 7 | | }
24 8 | | }
25 | |_^ conflicting implementation for `Flags`
26 |
27 = note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info)
28
29 error[E0119]: conflicting implementations of trait `std::marker::StructuralPartialEq` for type `Flags`
30 --> $DIR/eq.rs:3:1
31 |
32 3 | / bitflags! {
33 4 | | #[derive(PartialEq, Eq)]
34 | | --------- first implementation here
35 5 | | struct Flags: u32 {
36 6 | | const A = 0b00000001;
37 7 | | }
38 8 | | }
39 | |_^ conflicting implementation for `Flags`
40 |
41 = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
42
43 error[E0119]: conflicting implementations of trait `std::marker::StructuralEq` for type `Flags`
44 --> $DIR/eq.rs:3:1
45 |
46 3 | / bitflags! {
47 4 | | #[derive(PartialEq, Eq)]
48 | | -- first implementation here
49 5 | | struct Flags: u32 {
50 6 | | const A = 0b00000001;
51 7 | | }
52 8 | | }
53 | |_^ conflicting implementation for `Flags`
54 |
55 = note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info)