1 error[E0308]: mismatched types
2 --> $DIR/issue-53692.rs:7:33
4 LL | let items_clone: Vec<i32> = ref_items.clone();
5 | -------- ^^^^^^^^^^-----^^
7 | | | help: try using a conversion method: `to_vec`
8 | | expected struct `Vec`, found `&[i32]`
11 = note: expected struct `Vec<i32>`
12 found reference `&[i32]`
14 error[E0308]: mismatched types
15 --> $DIR/issue-53692.rs:14:26
17 LL | let string: String = s.clone();
20 | | | help: try using a conversion method: `to_string`
21 | | expected struct `String`, found `&str`
22 | expected due to this
24 error: aborting due to 2 previous errors
26 For more information about this error, try `rustc --explain E0308`.