]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-53692.stderr
e3f2cb8c4101d1d6534915235822cb1b8a31bac7
[rust.git] / src / test / ui / issues / issue-53692.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-53692.rs:4:37
3    |
4 LL |         let items_clone: Vec<i32> = ref_items.clone();
5    |                                     ^^^^^^^^^^^^^^^^^
6    |                                     |
7    |                                     expected struct `std::vec::Vec`, found &[i32]
8    |                                     help: try using a conversion method: `ref_items.to_vec()`
9    |
10    = note: expected struct `std::vec::Vec<i32>`
11            found reference `&[i32]`
12
13 error[E0308]: mismatched types
14   --> $DIR/issue-53692.rs:11:30
15    |
16 LL |         let string: String = s.clone();
17    |                              ^^^^^^^^^
18    |                              |
19    |                              expected struct `std::string::String`, found &str
20    |                              help: try using a conversion method: `s.to_string()`
21    |
22    = note: expected struct `std::string::String`
23            found reference `&str`
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0308`.