Skip to content

Commit 8b8cedb

Browse files
committed
Add non-functioning unit tests
1 parent 1eafdb8 commit 8b8cedb

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

tests/ui/derives/issue-131083.rs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#[derive(Copy, Clone)]
2+
#[derive(Copy, Clone)] //~ ERROR
3+
enum E {}

tests/ui/derives/issue-131083.stderr

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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`.

0 commit comments

Comments
 (0)