Skip to content

Commit 0985144

Browse files
committed
moved renamed docs stderr | exclusive-drop-and-copy.rs
1 parent 47bcd48 commit 0985144

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/ui/exclusive-drop-and-copy.rs renamed to tests/ui/derives/copy-drop-mutually-exclusive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// issue #20126
1+
//! Regression test for issue #20126: Copy and Drop traits are mutually exclusive
22
33
#[derive(Copy, Clone)] //~ ERROR the trait `Copy` cannot be implemented
44
struct Foo;

tests/ui/exclusive-drop-and-copy.stderr renamed to tests/ui/derives/copy-drop-mutually-exclusive.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0184]: the trait `Copy` cannot be implemented for this type; the type has a destructor
2-
--> $DIR/exclusive-drop-and-copy.rs:3:10
2+
--> $DIR/copy-drop-mutually-exclusive.rs:3:10
33
|
44
LL | #[derive(Copy, Clone)]
55
| ^^^^ `Copy` not allowed on types with destructors
66

77
error[E0184]: the trait `Copy` cannot be implemented for this type; the type has a destructor
8-
--> $DIR/exclusive-drop-and-copy.rs:10:10
8+
--> $DIR/copy-drop-mutually-exclusive.rs:10:10
99
|
1010
LL | #[derive(Copy, Clone)]
1111
| ^^^^ `Copy` not allowed on types with destructors

0 commit comments

Comments
 (0)