Skip to content

Commit

Permalink
Rename and update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VulnBandit committed Oct 2, 2024
1 parent 8b8cedb commit eb67ab7
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 24 deletions.
6 changes: 6 additions & 0 deletions tests/ui/derives/duplicate-derive-copy-clone-diagnostics.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#[derive(Copy, Clone)]
#[derive(Copy, Clone)]
//~^ ERROR conflicting implementations of trait `Copy`
enum E {}

fn main() {}
23 changes: 23 additions & 0 deletions tests/ui/derives/duplicate-derive-copy-clone-diagnostics.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
error[E0119]: conflicting implementations of trait `Copy` for type `E`
--> $DIR/duplicate-derive-copy-clone-diagnostics.rs:2:10
|
LL | #[derive(Copy, Clone)]
| ---- first implementation here
LL | #[derive(Copy, Clone)]
| ^^^^ conflicting implementation for `E`
|
= note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0119]: conflicting implementations of trait `Clone` for type `E`
--> $DIR/duplicate-derive-copy-clone-diagnostics.rs:2:16
|
LL | #[derive(Copy, Clone)]
| ----- first implementation here
LL | #[derive(Copy, Clone)]
| ^^^^^ conflicting implementation for `E`
|
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0119`.
3 changes: 0 additions & 3 deletions tests/ui/derives/issue-131083.rs

This file was deleted.

21 changes: 0 additions & 21 deletions tests/ui/derives/issue-131083.stderr

This file was deleted.

0 comments on commit eb67ab7

Please sign in to comment.