1 error: using `clone` on type `i32` which implements the `Copy` trait
2 --> $DIR/clone_on_copy.rs:23:5
5 | ^^^^^^^^^^ help: try removing the `clone` call: `42`
7 = note: `-D clippy::clone-on-copy` implied by `-D warnings`
9 error: using `clone` on type `i32` which implements the `Copy` trait
10 --> $DIR/clone_on_copy.rs:27:5
13 | ^^^^^^^^^^^^^ help: try dereferencing it: `*(&42)`
15 error: using `clone` on type `i32` which implements the `Copy` trait
16 --> $DIR/clone_on_copy.rs:30:5
18 LL | rc.borrow().clone();
19 | ^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*rc.borrow()`
21 error: using `clone` on type `char` which implements the `Copy` trait
22 --> $DIR/clone_on_copy.rs:36:14
24 LL | is_ascii('z'.clone());
25 | ^^^^^^^^^^^ help: try removing the `clone` call: `'z'`
27 error: using `clone` on type `i32` which implements the `Copy` trait
28 --> $DIR/clone_on_copy.rs:40:14
30 LL | vec.push(42.clone());
31 | ^^^^^^^^^^ help: try removing the `clone` call: `42`
33 error: aborting due to 5 previous errors