Skip to content

Commit

Permalink
Add non-functioning unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VulnBandit committed Oct 2, 2024
1 parent 1eafdb8 commit 8b8cedb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ui/derives/issue-131083.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#[derive(Copy, Clone)]
#[derive(Copy, Clone)] //~ ERROR
enum E {}
21 changes: 21 additions & 0 deletions tests/ui/derives/issue-131083.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
error[E0119]: conflicting implementations of trait `Copy` for type `E`
--> $DIR/issue-131083.rs:2:10
|
1 | #[derive(Copy, Clone)]
| ---- first implementation here
2 | #[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/issue-131083.rs:2:16
|
1 | #[derive(Copy, Clone)]
| ----- first implementation here
2 | #[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)

For more information about this error, try `rustc --explain E0119`.

0 comments on commit 8b8cedb

Please sign in to comment.