1error[E0119]: conflicting implementations of trait `std::cmp::PartialEq` for type `Flags` 2 --> $DIR/eq.rs:3:1 3 | 43 | / bitflags! { 54 | | #[derive(PartialEq, Eq)] 6 | | --------- first implementation here 75 | | struct Flags: u32 { 86 | | const A = 0b00000001; 97 | | } 108 | | } 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 15error[E0119]: conflicting implementations of trait `std::cmp::Eq` for type `Flags` 16 --> $DIR/eq.rs:3:1 17 | 183 | / bitflags! { 194 | | #[derive(PartialEq, Eq)] 20 | | -- first implementation here 215 | | struct Flags: u32 { 226 | | const A = 0b00000001; 237 | | } 248 | | } 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 29error[E0119]: conflicting implementations of trait `std::marker::StructuralPartialEq` for type `Flags` 30 --> $DIR/eq.rs:3:1 31 | 323 | / bitflags! { 334 | | #[derive(PartialEq, Eq)] 34 | | --------- first implementation here 355 | | struct Flags: u32 { 366 | | const A = 0b00000001; 377 | | } 388 | | } 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 43error[E0119]: conflicting implementations of trait `std::marker::StructuralEq` for type `Flags` 44 --> $DIR/eq.rs:3:1 45 | 463 | / bitflags! { 474 | | #[derive(PartialEq, Eq)] 48 | | -- first implementation here 495 | | struct Flags: u32 { 506 | | const A = 0b00000001; 517 | | } 528 | | } 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) 56