1 error: implicitly cloning a `Vec` by calling `to_owned` on its dereferenced type
2 --> $DIR/implicit_clone.rs:65:17
4 LL | let _ = vec.to_owned();
5 | ^^^^^^^^ help: consider using: `clone`
7 = note: `-D clippy::implicit-clone` implied by `-D warnings`
9 error: implicitly cloning a `Vec` by calling `to_vec` on its dereferenced type
10 --> $DIR/implicit_clone.rs:66:17
12 LL | let _ = vec.to_vec();
13 | ^^^^^^ help: consider using: `clone`
15 error: implicitly cloning a `Vec` by calling `to_owned` on its dereferenced type
16 --> $DIR/implicit_clone.rs:70:21
18 LL | let _ = vec_ref.to_owned();
19 | ^^^^^^^^ help: consider using: `clone`
21 error: implicitly cloning a `Vec` by calling `to_vec` on its dereferenced type
22 --> $DIR/implicit_clone.rs:71:21
24 LL | let _ = vec_ref.to_vec();
25 | ^^^^^^ help: consider using: `clone`
27 error: implicitly cloning a `String` by calling `to_owned` on its dereferenced type
28 --> $DIR/implicit_clone.rs:83:17
30 LL | let _ = str.to_owned();
31 | ^^^^^^^^ help: consider using: `clone`
33 error: implicitly cloning a `Kitten` by calling `to_owned` on its dereferenced type
34 --> $DIR/implicit_clone.rs:87:20
36 LL | let _ = kitten.to_owned();
37 | ^^^^^^^^ help: consider using: `clone`
39 error: implicitly cloning a `PathBuf` by calling `to_owned` on its dereferenced type
40 --> $DIR/implicit_clone.rs:97:21
42 LL | let _ = pathbuf.to_owned();
43 | ^^^^^^^^ help: consider using: `clone`
45 error: implicitly cloning a `PathBuf` by calling `to_path_buf` on its dereferenced type
46 --> $DIR/implicit_clone.rs:98:21
48 LL | let _ = pathbuf.to_path_buf();
49 | ^^^^^^^^^^^ help: consider using: `clone`
51 error: implicitly cloning a `OsString` by calling `to_owned` on its dereferenced type
52 --> $DIR/implicit_clone.rs:101:23
54 LL | let _ = os_string.to_owned();
55 | ^^^^^^^^ help: consider using: `clone`
57 error: implicitly cloning a `OsString` by calling `to_os_string` on its dereferenced type
58 --> $DIR/implicit_clone.rs:102:23
60 LL | let _ = os_string.to_os_string();
61 | ^^^^^^^^^^^^ help: consider using: `clone`
63 error: aborting due to 10 previous errors