2019-05-26 18:39:48 +00:00
|
|
|
error[E0308]: mismatched types
|
2022-07-10 17:19:45 +00:00
|
|
|
--> $DIR/issue-52820.rs:12:9
|
2019-05-26 18:39:48 +00:00
|
|
|
|
|
|
|
|
LL | guts,
|
2023-01-03 02:00:33 +00:00
|
|
|
| ^^^^ expected `String`, found `&str`
|
2021-06-28 18:22:47 +00:00
|
|
|
|
|
|
|
|
help: try using a conversion method
|
|
|
|
|
|
|
|
|
LL | guts: guts.to_string(),
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++++ ++++++++++++
|
2019-05-26 18:39:48 +00:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2022-07-10 17:19:45 +00:00
|
|
|
--> $DIR/issue-52820.rs:13:17
|
2019-05-26 18:39:48 +00:00
|
|
|
|
|
|
|
|
LL | brains: guts.clone(),
|
2022-07-10 17:19:45 +00:00
|
|
|
| ^^^^^-----^^
|
|
|
|
| | |
|
|
|
|
| | help: try using a conversion method: `to_string`
|
2023-01-03 02:00:33 +00:00
|
|
|
| expected `String`, found `&str`
|
2019-05-26 18:39:48 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|