about summary refs log tree commit diff
path: root/tests/ui/suggestions/issue-53692.stderr
blob: 10ebb30a5b24a6ce0a2f1158cfae83f7cc0346e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
error[E0308]: mismatched types
  --> $DIR/issue-53692.rs:7:33
   |
LL |     let items_clone: Vec<i32> = ref_items.clone();
   |                      --------   ^^^^^^^^^^^^^^^^^ expected `Vec<i32>`, found `&[i32]`
   |                      |
   |                      expected due to this
   |
   = note: expected struct `Vec<i32>`
           found reference `&[i32]`
help: try using a conversion method
   |
LL -     let items_clone: Vec<i32> = ref_items.clone();
LL +     let items_clone: Vec<i32> = ref_items.to_vec();
   |

error[E0308]: mismatched types
  --> $DIR/issue-53692.rs:14:26
   |
LL |     let string: String = s.clone();
   |                 ------   ^^^^^^^^^ expected `String`, found `&str`
   |                 |
   |                 expected due to this
   |
help: try using a conversion method
   |
LL -     let string: String = s.clone();
LL +     let string: String = s.to_string();
   |

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.