]> git.proxmox.com Git - rustc.git/blob - vendor/bitflags/tests/compile-fail/derive/copy.stderr.beta
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / vendor / bitflags / tests / compile-fail / derive / copy.stderr.beta
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
15 error[E0119]: conflicting implementations of trait `std::marker::Copy` for type `Flags`
16 --> $DIR/copy.rs:3:1
17 |
18 3 | / bitflags! {
19 4 | | #[derive(Clone, Copy)]
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 `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)