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