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