summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-53692.stderr
blob: 3a1b624f402f0db5ecc0576c329134de91c8419b (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 struct `Vec`, 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 struct `String`, found `&str`
   |                 expected due to this

error: aborting due to 2 previous errors

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