rust/src/test/ui/issues/issue-53692.stderr
2019-11-21 19:24:31 -08:00

27 lines
1.1 KiB
Plaintext

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