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