eq.stderr.beta 1.9 KB

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