@@ -9,16 +9,7 @@ LL | | fn clone(&self) -> Self {
99LL | | }
1010 | |_^
1111 |
12- help: consider deriving `Clone` or removing `Copy`
13- --> tests/ui/derive.rs:15:1
14- |
15- LL | / impl Clone for Qux {
16- LL | |
17- LL | |
18- LL | | fn clone(&self) -> Self {
19- ... |
20- LL | | }
21- | |_^
12+ = help: consider deriving `Clone` or removing `Copy`
2213 = note: `-D clippy::expl-impl-clone-on-copy` implied by `-D warnings`
2314 = help: to override `-D warnings` add `#[allow(clippy::expl_impl_clone_on_copy)]`
2415
@@ -33,16 +24,7 @@ LL | | fn clone(&self) -> Self {
3324LL | | }
3425 | |_^
3526 |
36- help: consider deriving `Clone` or removing `Copy`
37- --> tests/ui/derive.rs:41:1
38- |
39- LL | / impl<'a> Clone for Lt<'a> {
40- LL | |
41- LL | |
42- LL | | fn clone(&self) -> Self {
43- ... |
44- LL | | }
45- | |_^
27+ = help: consider deriving `Clone` or removing `Copy`
4628
4729error: you are implementing `Clone` explicitly on a `Copy` type
4830 --> tests/ui/derive.rs:54:1
@@ -55,16 +37,7 @@ LL | | fn clone(&self) -> Self {
5537LL | | }
5638 | |_^
5739 |
58- help: consider deriving `Clone` or removing `Copy`
59- --> tests/ui/derive.rs:54:1
60- |
61- LL | / impl Clone for BigArray {
62- LL | |
63- LL | |
64- LL | | fn clone(&self) -> Self {
65- ... |
66- LL | | }
67- | |_^
40+ = help: consider deriving `Clone` or removing `Copy`
6841
6942error: you are implementing `Clone` explicitly on a `Copy` type
7043 --> tests/ui/derive.rs:67:1
@@ -77,16 +50,7 @@ LL | | fn clone(&self) -> Self {
7750LL | | }
7851 | |_^
7952 |
80- help: consider deriving `Clone` or removing `Copy`
81- --> tests/ui/derive.rs:67:1
82- |
83- LL | / impl Clone for FnPtr {
84- LL | |
85- LL | |
86- LL | | fn clone(&self) -> Self {
87- ... |
88- LL | | }
89- | |_^
53+ = help: consider deriving `Clone` or removing `Copy`
9054
9155error: you are implementing `Clone` explicitly on a `Copy` type
9256 --> tests/ui/derive.rs:89:1
@@ -99,16 +63,7 @@ LL | | fn clone(&self) -> Self {
9963LL | | }
10064 | |_^
10165 |
102- help: consider deriving `Clone` or removing `Copy`
103- --> tests/ui/derive.rs:89:1
104- |
105- LL | / impl<T: Clone> Clone for Generic2<T> {
106- LL | |
107- LL | |
108- LL | | fn clone(&self) -> Self {
109- ... |
110- LL | | }
111- | |_^
66+ = help: consider deriving `Clone` or removing `Copy`
11267
11368error: aborting due to 5 previous errors
11469
0 commit comments