]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-53692.stderr
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[rust.git] / src / test / ui / suggestions / 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 `Vec`, found `&[i32]`
8    |                          |          help: try using a conversion method: `ref_items.to_vec()`
9    |                          expected due to this
10    |
11    = note: expected struct `Vec<i32>`
12            found reference `&[i32]`
13
14 error[E0308]: mismatched types
15   --> $DIR/issue-53692.rs:11:30
16    |
17 LL |         let string: String = s.clone();
18    |                     ------   ^^^^^^^^^
19    |                     |        |
20    |                     |        expected struct `String`, found `&str`
21    |                     |        help: try using a conversion method: `s.to_string()`
22    |                     expected due to this
23
24 error: aborting due to 2 previous errors
25
26 For more information about this error, try `rustc --explain E0308`.