]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-53692.stderr
New upstream version 1.33.0+dfsg1
[rustc.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 type `std::vec::Vec<i32>`
11 found type `&[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 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`.