summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/derive.stderr
blob: 1328a9b31077e0182722c3b1c4479cfd138728e6 (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
error: you are implementing `Clone` explicitly on a `Copy` type
  --> $DIR/derive.rs:8:1
   |
LL | / impl Clone for Qux {
LL | |     fn clone(&self) -> Self {
LL | |         Qux
LL | |     }
LL | | }
   | |_^
   |
   = note: `-D clippy::expl-impl-clone-on-copy` implied by `-D warnings`
note: consider deriving `Clone` or removing `Copy`
  --> $DIR/derive.rs:8:1
   |
LL | / impl Clone for Qux {
LL | |     fn clone(&self) -> Self {
LL | |         Qux
LL | |     }
LL | | }
   | |_^

error: you are implementing `Clone` explicitly on a `Copy` type
  --> $DIR/derive.rs:32:1
   |
LL | / impl<'a> Clone for Lt<'a> {
LL | |     fn clone(&self) -> Self {
LL | |         unimplemented!()
LL | |     }
LL | | }
   | |_^
   |
note: consider deriving `Clone` or removing `Copy`
  --> $DIR/derive.rs:32:1
   |
LL | / impl<'a> Clone for Lt<'a> {
LL | |     fn clone(&self) -> Self {
LL | |         unimplemented!()
LL | |     }
LL | | }
   | |_^

error: you are implementing `Clone` explicitly on a `Copy` type
  --> $DIR/derive.rs:44:1
   |
LL | / impl Clone for BigArray {
LL | |     fn clone(&self) -> Self {
LL | |         unimplemented!()
LL | |     }
LL | | }
   | |_^
   |
note: consider deriving `Clone` or removing `Copy`
  --> $DIR/derive.rs:44:1
   |
LL | / impl Clone for BigArray {
LL | |     fn clone(&self) -> Self {
LL | |         unimplemented!()
LL | |     }
LL | | }
   | |_^

error: you are implementing `Clone` explicitly on a `Copy` type
  --> $DIR/derive.rs:56:1
   |
LL | / impl Clone for FnPtr {
LL | |     fn clone(&self) -> Self {
LL | |         unimplemented!()
LL | |     }
LL | | }
   | |_^
   |
note: consider deriving `Clone` or removing `Copy`
  --> $DIR/derive.rs:56:1
   |
LL | / impl Clone for FnPtr {
LL | |     fn clone(&self) -> Self {
LL | |         unimplemented!()
LL | |     }
LL | | }
   | |_^

error: aborting due to 4 previous errors