99f2977031
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
24 lines
670 B
Plaintext
24 lines
670 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/issue-52820.rs:9:9
|
|
|
|
|
LL | guts,
|
|
| ^^^^ expected struct `String`, found `&str`
|
|
|
|
|
help: try using a conversion method
|
|
|
|
|
LL | guts: guts.to_string(),
|
|
| +++++ ++++++++++++
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/issue-52820.rs:10:17
|
|
|
|
|
LL | brains: guts.clone(),
|
|
| ^^^^^^^^^^^^
|
|
| |
|
|
| expected struct `String`, found `&str`
|
|
| help: try using a conversion method: `guts.to_string()`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|