2018-09-09 12:05:46 +00:00
|
|
|
error[E0308]: mismatched types
|
2022-07-10 17:19:45 +00:00
|
|
|
--> $DIR/issue-53692.rs:7:33
|
2018-09-09 12:05:46 +00:00
|
|
|
|
|
2022-07-10 17:19:45 +00:00
|
|
|
LL | let items_clone: Vec<i32> = ref_items.clone();
|
|
|
|
| -------- ^^^^^^^^^^-----^^
|
|
|
|
| | | |
|
|
|
|
| | | help: try using a conversion method: `to_vec`
|
2023-01-03 02:00:33 +00:00
|
|
|
| | expected `Vec<i32>`, found `&[i32]`
|
2022-07-10 17:19:45 +00:00
|
|
|
| expected due to this
|
2018-09-09 12:05:46 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= note: expected struct `Vec<i32>`
|
2019-11-13 22:16:56 +00:00
|
|
|
found reference `&[i32]`
|
2018-09-09 12:05:46 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2022-07-10 17:19:45 +00:00
|
|
|
--> $DIR/issue-53692.rs:14:26
|
2018-09-09 12:05:46 +00:00
|
|
|
|
|
2022-07-10 17:19:45 +00:00
|
|
|
LL | let string: String = s.clone();
|
|
|
|
| ------ ^^-----^^
|
|
|
|
| | | |
|
|
|
|
| | | help: try using a conversion method: `to_string`
|
2023-01-03 02:00:33 +00:00
|
|
|
| | expected `String`, found `&str`
|
2022-07-10 17:19:45 +00:00
|
|
|
| expected due to this
|
2018-09-09 12:05:46 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|