]> git.lizzy.rs Git - rust.git/blob - tests/ui/derive.stderr
iterate List by value
[rust.git] / 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:44: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:44: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:56: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:56: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: aborting due to 4 previous errors
83