about summary refs log tree commit diff
path: root/tests/ui/suggestions/issue-52820.stderr
blob: de2c9542f61137c290072f1a9b9516d92aa81c2a (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-52820.rs:12:9
   |
LL |         guts,
   |         ^^^^ expected `String`, found `&str`
   |
help: try using a conversion method
   |
LL |         guts: guts.to_string(),
   |         +++++     ++++++++++++

error[E0308]: mismatched types
  --> $DIR/issue-52820.rs:13:17
   |
LL |         brains: guts.clone(),
   |                 ^^^^^^^^^^^^ expected `String`, found `&str`
   |
help: try using a conversion method
   |
LL -         brains: guts.clone(),
LL +         brains: guts.to_string(),
   |

error: aborting due to 2 previous errors

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