]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-53692.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issue-53692.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-53692.rs:13: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 type `std::vec::Vec<i32>`
11               found type `&[i32]`
12
13 error[E0308]: mismatched types
14   --> $DIR/issue-53692.rs:19: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 type `std::string::String`
23               found type `&str`
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0308`.