summary refs log tree commit diff
path: root/src/test/ui/issue-53692.stderr
blob: 9cd8a53615529b2fb358f57d4b60f61ca4773f07 (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
error[E0308]: mismatched types
  --> $DIR/issue-53692.rs:13:37
   |
LL |         let items_clone: Vec<i32> = ref_items.clone();
   |                                     ^^^^^^^^^^^^^^^^^
   |                                     |
   |                                     expected struct `std::vec::Vec`, found &[i32]
   |                                     help: try using a conversion method: `ref_items.to_vec()`
   |
   = note: expected type `std::vec::Vec<i32>`
              found type `&[i32]`

error[E0308]: mismatched types
  --> $DIR/issue-53692.rs:19:30
   |
LL |         let string: String = s.clone();
   |                              ^^^^^^^^^
   |                              |
   |                              expected struct `std::string::String`, found &str
   |                              help: try using a conversion method: `s.to_string()`
   |
   = note: expected type `std::string::String`
              found type `&str`

error: aborting due to 2 previous errors

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