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