File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ #[ derive( Copy , Clone ) ]
2+ #[ derive( Copy , Clone ) ] //~ ERROR
3+ enum E { }
Original file line number Diff line number Diff line change 1+ error[E0119]: conflicting implementations of trait `Copy` for type `E`
2+ --> $DIR/issue-131083.rs:2:10
3+ |
4+ 1 | #[derive(Copy, Clone)]
5+ | ---- first implementation here
6+ 2 | #[derive(Copy, Clone)]
7+ | ^^^^ conflicting implementation for `E`
8+ |
9+ = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
10+
11+ error[E0119]: conflicting implementations of trait `Clone` for type `E`
12+ --> $DIR/issue-131083.rs:2:16
13+ |
14+ 1 | #[derive(Copy, Clone)]
15+ | ----- first implementation here
16+ 2 | #[derive(Copy, Clone)]
17+ | ^^^^^ conflicting implementation for `E`
18+ |
19+ = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
20+
21+ For more information about this error, try `rustc --explain E0119`.
You can’t perform that action at this time.
0 commit comments