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