blob: 88942d95432269ff33394001bd045f34cc899449 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
error: you are implementing `Clone` explicitly on a `Copy` type
--> $DIR/derive.rs:8:1
|
LL | / impl Clone for Qux {
LL | |
LL | | fn clone(&self) -> Self {
LL | | Qux
LL | | }
LL | | }
| |_^
|
note: consider deriving `Clone` or removing `Copy`
--> $DIR/derive.rs:8:1
|
LL | / impl Clone for Qux {
LL | |
LL | | fn clone(&self) -> Self {
LL | | Qux
LL | | }
LL | | }
| |_^
= note: `-D clippy::expl-impl-clone-on-copy` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::expl_impl_clone_on_copy)]`
error: you are implementing `Clone` explicitly on a `Copy` type
--> $DIR/derive.rs:33:1
|
LL | / impl<'a> Clone for Lt<'a> {
LL | |
LL | | fn clone(&self) -> Self {
LL | | unimplemented!()
LL | | }
LL | | }
| |_^
|
note: consider deriving `Clone` or removing `Copy`
--> $DIR/derive.rs:33:1
|
LL | / impl<'a> Clone for Lt<'a> {
LL | |
LL | | fn clone(&self) -> Self {
LL | | unimplemented!()
LL | | }
LL | | }
| |_^
error: you are implementing `Clone` explicitly on a `Copy` type
--> $DIR/derive.rs:45:1
|
LL | / impl Clone for BigArray {
LL | |
LL | | fn clone(&self) -> Self {
LL | | unimplemented!()
LL | | }
LL | | }
| |_^
|
note: consider deriving `Clone` or removing `Copy`
--> $DIR/derive.rs:45:1
|
LL | / impl Clone for BigArray {
LL | |
LL | | fn clone(&self) -> Self {
LL | | unimplemented!()
LL | | }
LL | | }
| |_^
error: you are implementing `Clone` explicitly on a `Copy` type
--> $DIR/derive.rs:57:1
|
LL | / impl Clone for FnPtr {
LL | |
LL | | fn clone(&self) -> Self {
LL | | unimplemented!()
LL | | }
LL | | }
| |_^
|
note: consider deriving `Clone` or removing `Copy`
--> $DIR/derive.rs:57:1
|
LL | / impl Clone for FnPtr {
LL | |
LL | | fn clone(&self) -> Self {
LL | | unimplemented!()
LL | | }
LL | | }
| |_^
error: you are implementing `Clone` explicitly on a `Copy` type
--> $DIR/derive.rs:78:1
|
LL | / impl<T: Clone> Clone for Generic2<T> {
LL | |
LL | | fn clone(&self) -> Self {
LL | | Self(self.0.clone())
LL | | }
LL | | }
| |_^
|
note: consider deriving `Clone` or removing `Copy`
--> $DIR/derive.rs:78:1
|
LL | / impl<T: Clone> Clone for Generic2<T> {
LL | |
LL | | fn clone(&self) -> Self {
LL | | Self(self.0.clone())
LL | | }
LL | | }
| |_^
error: aborting due to 5 previous errors
|