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