fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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