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