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