summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-53692.stderr
blob: 469a538411fb1264bcd6c264a7d6d4b03182b951 (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
error[E0308]: mismatched types
  --> $DIR/issue-53692.rs:7:33
   |
LL |     let items_clone: Vec<i32> = ref_items.clone();
   |                      --------   ^^^^^^^^^^-----^^
   |                      |          |         |
   |                      |          |         help: try using a conversion method: `to_vec`
   |                      |          expected `Vec<i32>`, found `&[i32]`
   |                      expected due to this
   |
   = note: expected struct `Vec<i32>`
           found reference `&[i32]`

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

error: aborting due to 2 previous errors

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