2018-09-09 07:05:46 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-53692.rs:4:37
|
2018-09-09 07:05:46 -05:00
|
|
|
|
|
|
|
|
LL | let items_clone: Vec<i32> = ref_items.clone();
|
2019-11-18 23:00:24 -06:00
|
|
|
| -------- ^^^^^^^^^^^^^^^^^
|
|
|
|
| | |
|
|
|
|
| | expected struct `std::vec::Vec`, found `&[i32]`
|
|
|
|
| | help: try using a conversion method: `ref_items.to_vec()`
|
|
|
|
| expected due to this
|
2018-09-09 07:05:46 -05:00
|
|
|
|
|
2019-11-13 16:16:56 -06:00
|
|
|
= note: expected struct `std::vec::Vec<i32>`
|
|
|
|
found reference `&[i32]`
|
2018-09-09 07:05:46 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-53692.rs:11:30
|
2018-09-09 07:05:46 -05:00
|
|
|
|
|
|
|
|
LL | let string: String = s.clone();
|
2019-11-18 23:00:24 -06:00
|
|
|
| ------ ^^^^^^^^^
|
|
|
|
| | |
|
|
|
|
| | expected struct `std::string::String`, found `&str`
|
|
|
|
| | help: try using a conversion method: `s.to_string()`
|
|
|
|
| expected due to this
|
2018-09-09 07:05:46 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|