copy.stderr.beta 958 B

123456789101112131415161718192021222324252627
  1. error[E0119]: conflicting implementations of trait `std::clone::Clone` for type `Flags`
  2. --> $DIR/copy.rs:3:1
  3. |
  4. 3 | / bitflags! {
  5. 4 | | #[derive(Clone, Copy)]
  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 `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
  14. error[E0119]: conflicting implementations of trait `std::marker::Copy` for type `Flags`
  15. --> $DIR/copy.rs:3:1
  16. |
  17. 3 | / bitflags! {
  18. 4 | | #[derive(Clone, Copy)]
  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 `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)