Skip to content

Commit eb67ab7

Browse files
committed
Rename and update tests
1 parent 8b8cedb commit eb67ab7

4 files changed

+29
-24
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#[derive(Copy, Clone)]
2+
#[derive(Copy, Clone)]
3+
//~^ ERROR conflicting implementations of trait `Copy`
4+
enum E {}
5+
6+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
error[E0119]: conflicting implementations of trait `Copy` for type `E`
2+
--> $DIR/duplicate-derive-copy-clone-diagnostics.rs:2:10
3+
|
4+
LL | #[derive(Copy, Clone)]
5+
| ---- first implementation here
6+
LL | #[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/duplicate-derive-copy-clone-diagnostics.rs:2:16
13+
|
14+
LL | #[derive(Copy, Clone)]
15+
| ----- first implementation here
16+
LL | #[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+
error: aborting due to 2 previous errors
22+
23+
For more information about this error, try `rustc --explain E0119`.

tests/ui/derives/issue-131083.rs

-3
This file was deleted.

tests/ui/derives/issue-131083.stderr

-21
This file was deleted.

0 commit comments

Comments
 (0)