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