1 error[E0308]: mismatched types
2 --> $DIR/issue-52820.rs:9:9
5 | ^^^^ expected struct `String`, found `&str`
7 help: try using a conversion method
9 LL | guts: guts.to_string(),
12 error[E0308]: mismatched types
13 --> $DIR/issue-52820.rs:10:17
15 LL | brains: guts.clone(),
18 | expected struct `String`, found `&str`
19 | help: try using a conversion method: `guts.to_string()`
21 error: aborting due to 2 previous errors
23 For more information about this error, try `rustc --explain E0308`.